Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adhoc / managed envs vimrc [ci skip] #33578

Merged
merged 2 commits into from Mar 12, 2020
Merged

Adhoc / managed envs vimrc [ci skip] #33578

merged 2 commits into from Mar 12, 2020

Conversation

uponthesun
Copy link

Sets sensible defaults for vim on adhocs and managed environments daemons instances. (Vim defaults to tab width/indent of 8.)

Testing story

Tested on an adhoc.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@uponthesun uponthesun requested a review from wjordan March 11, 2020 23:04
run_list: [
local_mode ? 'recipe[cdo-apps]' : 'role[daemon]'
],
run_list: local_mode ? ['recipe[cdo-apps]', 'recipe[cdo-home-ubuntu]'] : ['role[daemon]'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, this is because the role[daemon] on hosted-chef includes cdo-home-ubuntu, so we need to add it here for local_mode (adhoc) deployments.

We might want to consider adding an include_recipe 'cdo-home-ubuntu' to cdo-apps directly so these are added in all cases to simplify this, but I think this is good for now.

Comment on lines +19 to +24
template "/root/#{file}" do
source "#{file[1..-1]}.erb"
mode '0644'
user 'root'
group 'root'
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it's a concern, but will adding all of these files to root home folder have any risk of unintended consequences, e.g., on startup or when running sudo? I don't think it will be a problem, just thinking out loud and pausing on this for a bit.

At least maybe worth manually trying to enter a sudo su root login shell to make sure it doesn't fail to execute the scripts at all or anything.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Tested sudo su and there are no problems that I can see.

@uponthesun uponthesun merged commit 313e722 into staging Mar 12, 2020
@uponthesun uponthesun deleted the adhoc-vimrc branch March 12, 2020 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants