Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rljohnsn
Created April 18, 2016 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rljohnsn/36cdf0e8525f5113a56afd8a69c85cfc to your computer and use it in GitHub Desktop.
Save rljohnsn/36cdf0e8525f5113a56afd8a69c85cfc to your computer and use it in GitHub Desktop.
[ec2-user@ip-172-31-0-72 recipes]$ sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json
Starting Chef Client, version 12.9.38
Installing Cookbook Gems:
Compiling Cookbooks...
[2016-04-18T23:17:01+00:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt
[2016-04-18T23:17:01+00:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt
[2016-04-18T23:17:01+00:00] WARN: platform_family: rhel
[2016-04-18T23:17:01+00:00] WARN: packages:pam_ccreds: {"version"=>"10", "release"=>"4.9.amzn1"}
================================================================================
Recipe Compile Error in /tmp/kitchen/cookbooks/os-hardening/recipes/default.rb
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
Property package_name must be one of: String, Array! You passed {"version"=>"1.0.5", "release"=>"6.8.amzn1"}.
Cookbook Trace:
---------------
/tmp/kitchen/cookbooks/os-hardening/recipes/pam.rb:116:in `block in from_file'
/tmp/kitchen/cookbooks/os-hardening/recipes/pam.rb:115:in `from_file'
/tmp/kitchen/cookbooks/os-hardening/recipes/default.rb:26:in `from_file'
Relevant File Content:
----------------------
/tmp/kitchen/cookbooks/os-hardening/recipes/pam.rb:
109: package 'pam-cracklib' do
110: package_name node['packages']['pam_cracklib']
111: action :remove
112: end
113:
114: # get the package for strong password checking
115: package 'pam-passwdqc' do
116>> package_name node['packages']['pam_passwdqc']
117: end
118:
119: # deactivate passwdqc
120: else
121:
122: # make sure the package is not on the system,
123: # if this feature is not wanted
124: package 'pam-passwdqc' do
125: package_name node['packages']['pam_passwdqc']
Platform:
---------
x86_64-linux
Running handlers:
[2016-04-18T23:17:01+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-04-18T23:17:01+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 02 seconds
[2016-04-18T23:17:01+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2016-04-18T23:17:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-04-18T23:17:01+00:00] ERROR: Property package_name must be one of: String, Array! You passed {"version"=>"1.0.5", "release"=>"6.8.amzn1"}.
[2016-04-18T23:17:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment