Hello:
I've been able to add users and groups without any issue on a bunch of test
machines, but I'm wondering if there is a way to check if a password has
already been set for a user before overwriting it. Searching for common
words like 'user' and 'password' brings up a bazillion hits, and
the type
reference page doesn't seem to have the functionality I want, so I thought
I'd post.
Here is how a user is created:
user { "Joe":
ensure => 'present',
uid => '3657',
gid => '5002',
shell => '/bin/csh',
home => '/home/Joe',
managehome => 'true',
password => 'some_hash',
comment => 'Joe',
}
Now, if someone changes their password on that machine and I then update
the password file using puppet, then of course the password hash will be
overwritten. This is not the behavior I want -- I'd like the existing
password hash to remain unchanged if it is already there.
Is there any way to do this using the user type? Maybe I'm thinking about
this problem the wrong way? I'm a bit stuck.
Thanks,
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/476ba24b-9349-4e27-89ff-0e34f3b36b7e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.