You could also use the built in sha1 function to let puppet generate the 
hashed version for you.
Like this:

user {'sysop': 
                  #uid                   => 500, 
             #groups              => 'admin', 
                comment        => 'Sysop', 
                ensure            => present, 
                home              => '/home/sysop', 
                shell               => '/bin/bash', 
            managehome      => true, 
            password            => sha1('plaintextpasswordhere'),
 } 

On Wednesday, June 8, 2011 9:08:36 PM UTC+2, vella1tj wrote:
>
> Hi everyone I would like to first of all say thanks to anyone willing 
> to help me. 
>
> I was tasked with creating a Admin account using puppet to push to all 
> of our Macs that we have deployed around the Campus. 
>
> user {'sysop': 
>                   #uid                   => 500, 
>              #groups              => 'admin', 
>                 comment        => 'Sysop', 
>                 ensure            => present, 
>                 home              => '/home/sysop', 
>                 shell               => '/bin/bash', 
>             managehome      => true, 
>             password            => 'Haven't figured out the best way to 
> hash 
> a password and put it in here., 
>         } 
>
> That's what I have so far, I don't believe I understand how Hash works 
> completely. The way I understand it is it will have a hash in the 
> password field and it will compare it to other hashes to match what 
> the password would be. So what I was hoping to get help on (or 
> anything i've done wrong or you would recommend me doing different) is 
> how do i set a resource for the hash do i put it in my files directory 
> and then point it to there.... is there anything special I have to do 
> so puppet understands that it's hash.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to