Created
April 20, 2016 02:52
-
-
Save rljohnsn/60cacdc8e39ffacbd997036555339b5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
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"=>"8.el6"}. | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cookbooks/os-hardening/recipes/pam.rb:112:in `block in from_file' | |
/tmp/kitchen/cookbooks/os-hardening/recipes/pam.rb:111: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: | |
105: package 'pam-cracklib' do | |
106: package_name node['packages']['pam_cracklib'] | |
107: action :remove | |
108: end | |
109: | |
110: # get the package for strong password checking | |
111: package 'pam-passwdqc' do | |
112>> package_name node['packages']['pam_passwdqc'] | |
113: end | |
114: | |
115: # deactivate passwdqc | |
116: else | |
117: | |
118: # make sure the package is not on the system, | |
119: # if this feature is not wanted | |
120: package 'pam-passwdqc' do | |
121: package_name node['packages']['pam_passwdqc'] | |
Platform: | |
--------- | |
x86_64-linux | |
Running handlers: | |
[2016-04-20T02:46:32+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2016-04-20T02:46:32+00:00] ERROR: Exception handlers complete | |
Chef Client failed. 0 resources updated in 02 seconds | |
[2016-04-20T02:46:32+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out | |
[2016-04-20T02:46:32+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2016-04-20T02:46:32+00:00] ERROR: Property package_name must be one of: String, Array! You passed {"version"=>"1.0.5", "release"=>"8.el6"}. | |
[2016-04-20T02:46:32+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
>>>>>> Converge failed on instance <smp-pilot-centos-67>. | |
>>>>>> Please see .kitchen/logs/smp-pilot-centos-67.log for more details | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: SSH exited (1) for command: [sh -c ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rljohnsn : Were you able to find the reason for the above error message?
Any suggestions to fix this issue ?