-
Notifications
You must be signed in to change notification settings - Fork 202
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
Adding ohai hints #102
Adding ohai hints #102
Conversation
0470174
to
eb7501a
Compare
eb7501a
to
8a1f7c5
Compare
# TODO Update this to use the new Transport logic when that is ready | ||
def create_ec2_json(state) | ||
Kitchen::SSH.new(*build_ssh_args(state)) do |conn| | ||
run_remote("sudo mkdir -p /etc/chef/ohai/hints;sudo touch /etc/chef/ohai/hints/ec2.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will sudo always be available? I think we use it elsewhere but I may misremember.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an ideal fix - when we can leverage the Transport logic from the windows-guest-support branches we will move this logic there. This is just a temporary workaround until we get access to that.
Having said that, do you think I should add a feature flag or something, so people on systems without sudo (or touch
) aren't totally borked by this?
@tyler-ball Will this need to be reworked to fit in with #109? The only thing making me wonder is the use of |
Moving the changes into #110 and closing this |
From #89 - I meant to add these a while ago and simply forgot