On Mon, Dec 10, 2012 at 10:28 AM, Martin Alfke <[email protected]> wrote:
> Hi Andrei,
>
> On 10.12.2012, at 09:22, Andrei-Florian Staicu wrote:
>
> > Hi all,
> >
> > I started managing users with puppet (3). Right now it works ok, but I
> have to change the hash manually in the manifest files. I would like users
> to login to the puppet master and change the password for themselves. Could
> I do something like this?
> > password => `grep $user /etc/shadow | awk -F ':' '{print $2}',
> >
> > Thanks.
>
> You want to make use of a function:
> http://docs.puppetlabs.com/references/latest/function.html
>
> Functions get executed on the master.
>
> hth,
>
> Martin
Hi Martin, and thanks for the quick answer.
Do you happen to know with what user do the scripts get executed on the
master? I it's not root, i might have to stick some sudos in there.
Thanks.
--
Beware of programmers who carry screwdrivers!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.