- From: ANGELA EBIRIM <
>
- To:
- Subject: [chef] Creating a user on a UNIX box with an encrypted hash for a password
- Date: Wed, 04 Mar 2015 12:36:57 +0000 (GMT)
Hello everyone,
I'd appreciate some assistance.
I'm trying to create a user on a UNIX box with the following code:-
user "svc_goagent" do
action :create
comment "go agent"
uid 1234
gid 2000
home "home/svc_goagent"
shell "/bin/bash"
password "{"encrypted_data"=>"ro21vM1nle78CTBLSNyr40e2tM9VZiiSfbinDAvwZpKov3r9gokq6jStDeAH\nsyRs\n", "iv"=>"PfWTKqKoc3OxO8WxTnW7Zg==\n", "version"=>1, "cipher"=>"aes-256-cbc"}"
supports :manage_home => true
end
My problem is when I put this into a recipe and then do a chef run, I get errors that prevent the user from being created. Can someone please tell me what is the code to pass an encrypted hash as a password for a new user?
Thanks
Angela
- [chef] Creating a user on a UNIX box with an encrypted hash for a password, ANGELA EBIRIM, 03/04/2015
Archive powered by MHonArc 2.6.16.