Kenneth,
I am setting the attribute in the same recipe but in an earlier ruby_block. The printLocalAdminPass ruby_block prints the right password :
ruby_block "getLocalAdminPass" do block do secret = Chef::EncryptedDataBagItem.load_secret(secret_file_path) app_local_admin_pass = Chef::EncryptedDataBagItem.load(node['databag_name'], "app_local_admin_pass", secret) node.default['temp_app_pass'] = app_local_admin_pass["pass"] end end
ruby_block "printLocalAdminPass" do block do pass = node['temp_app_pass'] puts "------> Local Admin password is : " + pass
end end
When I manually (in GUI) try to create a user with the same password (“Password#1”) that is set in the above ruby_block, it works fine. I tried removing quotes around it but it does not work.
Thanks
-Kapil
From: Kenneth Barry [mailto:
This might seem like a stupid question, but 1) are you setting that attribute some toher palce? 2) are you trying to set it to a password which would meet the password requirements as the warning would give reason to believe it is not? 3) Have you trying doing things just as you have them now but removing the quotes around the password attribute call?
On Mon, Mar 31, 2014 at 10:39 AM, Kapil Shardha < " target="_blank"> > wrote:
This email and any accompanying documents may contain privileged or otherwise confidential information of, and/or is the property of Education Management Solutions, Inc. If you are not the intended recipient, please immediately advise the sender by reply email & delete the message & any attachments without using, copying or disclosing the contents. Thank you. |
Archive powered by MHonArc 2.6.16.