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

For Ubuntu 10.04: update gems_dir to true location, update chef version to latest and chef_root to true location #18

Merged
merged 2 commits into from
Jan 11, 2013

Conversation

anujbiyani
Copy link
Contributor

I just set up an ec2 ami on Ubuntu 10.04 and noticed that one of my cookbooks was failing because a path in some file was wrong. After digging through it, I found that my spec for the cookbook was asserting based on the gem_dir set in Fauxhai, but that gem_dir didn't match the actual directory on the Ubuntu instance.

  update gems_dir to true location
  update chef version to latest and chef_root to true location
sethvargo added a commit that referenced this pull request Jan 11, 2013
For Ubuntu 10.04: update gems_dir to true location, update chef version to latest and chef_root to true location
@sethvargo sethvargo merged commit b3dafa9 into chefspec:master Jan 11, 2013
@sethvargo
Copy link
Contributor

I merged this because it's the more standard ohai data, but you can override all those things in your Fauxhai block:

Fauxhai.mock(platform:'ubuntu', version:'10.04') do |node|
  node['languages']['ruby']['gem_dir'] = 'wherever you want'
end

@anujbiyani anujbiyani deleted the fix_ubuntu_10_04 branch January 11, 2013 15:34
@anujbiyani
Copy link
Contributor Author

Yeah that was my intent (to fix the standard Ubuntu 10.04 data). Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants