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

Adding ohai hints #102

Closed
wants to merge 1 commit into from
Closed

Adding ohai hints #102

wants to merge 1 commit into from

Conversation

tyler-ball
Copy link
Contributor

From #89 - I meant to add these a while ago and simply forgot

# 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",

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.

Copy link
Contributor Author

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?

@fnichol
Copy link
Contributor

fnichol commented Apr 23, 2015

@tyler-ball Will this need to be reworked to fit in with #109? The only thing making me wonder is the use of Kitchen::SSH which can be swapped for the Transport code

@tyler-ball tyler-ball self-assigned this Apr 23, 2015
tyler-ball added a commit that referenced this pull request Apr 24, 2015
@tyler-ball
Copy link
Contributor Author

Moving the changes into #110 and closing this

@tyler-ball tyler-ball closed this Apr 24, 2015
tyler-ball added a commit that referenced this pull request May 14, 2015
@tas50 tas50 deleted the tball/ohai-hint branch January 30, 2022 01:02
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.

3 participants