Can you advice what workaround I can do for the time being.?
Yeah, this re-broke sometime since Chef 10. I submitted a couple of fixes to ohai and chef to make this work again, which will be in the 11.14.0 release.-CamOn Tue, Jul 15, 2014 at 2:21 PM, karthik kumar < " target="_blank"> > wrote:Hi,My recipe to update root password,user 'root' dopassword '$1$xRttNfmg$kiGAjD0nRQkFXyE5432ci'endthrows this error, BUT /etc/shadow file is updated properlychef-solo -c client.rb -j runlist.jsonStarting Chef Client, version 11.12.8Compiling Cookbooks...Converging 1 resourcesRecipe: base::default* user[root] action create (up to date)================================================================================Error executing action `create` on resource 'user[root]'================================================================================......Ran ["usermod", "root"] returned 2[2014-07-15T11:01:20-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)checking the code,chef-11.12.8/lib/chef/provider/user/solaris.rbdef manage_usermanage_password -> write_shadow_file # WORKS GOODsuper # parent's shell_out failsendchef-11.12.8/lib/chef/provider/user/useradd.rbdef manage_user.....shell_out!(*command) # command CONTAINS ["usermod", "root"] fails with return code non-zeroendI think this is same asand it says Resolution:Fixed,Can somebody advice if I am doing anything wrong ? Is there a workaround for this ? should I write lwrp/provider of my own ? Please advice.
Archive powered by MHonArc 2.6.16.