Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cheeseplus/83662a441df97ee6f7b5c15454df2405 to your computer and use it in GitHub Desktop.
Save cheeseplus/83662a441df97ee6f7b5c15454df2405 to your computer and use it in GitHub Desktop.
Recipe: audit::default
* compliance_profile[ssh] action fetch
* chef_gem[inspec] action install (up to date)
- install/update inspec
* directory[/var/chef/cache/compliance] action create (up to date)
- create cache directory
================================================================================
Error executing action `fetch` on resource 'compliance_profile[ssh]'
================================================================================
NoMethodError
-------------
undefined method `code' for #<Tempfile:/tmp/compliance-profile20160609-31316-fx1ilb.tgz>
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/audit/libraries/helper.rb:40:in `with_http_rescue'
/var/chef/cache/cookbooks/audit/libraries/profile.rb:93:in `block (2 levels) in <class:ComplianceProfile>'
/var/chef/cache/cookbooks/audit/libraries/profile.rb:54:in `block in <class:ComplianceProfile>'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/audit/recipes/default.rb
38: compliance_profile p do
39: owner o
40: server server
41: token token
42: path path unless path.nil?
43: inspec_version node['audit']['inspec_version']
44: quiet node['audit']['quiet'] unless node['audit']['quiet'].nil?
45: action [:fetch, :execute]
46: end
47: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/audit/recipes/default.rb:38:in `block in from_file'
compliance_profile("ssh") do
action [:fetch, :execute]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :compliance_profile
cookbook_name "audit"
recipe_name "default"
owner "base"
inspec_version "0.22.1"
profile "ssh"
end
Platform:
---------
x86_64-linux
Running handlers:
Running handlers complete
Chef Client failed. 3 resources updated in 11 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment