so If I changed it to
user {'sysop':
            #uid                   => 500,
            #groups              => 'admin',
                comment        => 'Sysop',
                ensure            => present,
                home              => '/home/sysop',
                shell               => '/bin/bash',
            managehome      => true,
            password            => "Hash"
}

Hash being the hash from /etc/shadow that would be all I needed?



On Jun 8, 3:12 pm, Nathan Clemons <nat...@livemocha.com> wrote:
> What I do is set the password on one host, and then copy the hash out of
> /etc/shadow into the Puppet definition to be set on the other hosts.
>
> By default the Puppet providers expect that the password field will be
> hashed as used on the system, not plaintext.
>
> --
> Nathan Clemonshttp://www.livemocha.com
> The worlds largest online language learning community
>
>
>
>
>
>
>
> On Wed, Jun 8, 2011 at 12:08 PM, vella1tj <vella...@gmail.com> 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 post to this group, send email to puppet-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > puppet-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to