-
Notifications
You must be signed in to change notification settings - Fork 133
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
ChefSpec and Ohai/Fauxhai: cpu #41
Comments
Thanks @rmoriz for reporting this. We are using Foodcritic and Robocop already, but we will take a look into supporting chef spec as well. |
rollbrettler
pushed a commit
to rollbrettler/chef-os-hardening
that referenced
this issue
Sep 16, 2016
fix filenames in comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using ChefSpec (with Fauxhai, either Debian 7.6 or Ubuntu 12.04)
in: os-hardening/recipes/sysctl.rb
turns out, typical fauxhai node attributes don't contain the attribute required:
https://github.com/customink/fauxhai/blob/master/lib/fauxhai/platforms/debian/7.6.json#L585
https://github.com/customink/fauxhai/blob/master/lib/fauxhai/platforms/ubuntu/14.04.json#L494
This will byte everyone using ChefSpec and your cookbook.
You either want to soft-fail or try to convince the fauxhai guys to add the attribute.
Workaround until then:
see https://github.com/sethvargo/chefspec#automatic-attributes
The text was updated successfully, but these errors were encountered: