trying to fix to set the password the first time

This commit is contained in:
mh 2008-11-08 21:30:27 +00:00
parent 86c0afad32
commit f23cf372ba

View file

@ -134,10 +134,10 @@ define user::define_user(
default: { default: {
case $operatingsystem { case $operatingsystem {
openbsd: { openbsd: {
exec { "setpass $name": exec { "setpass ${name}":
onlyif => "grep '^$name:\\*:' /etc/master.passwd", onlyif => "grep -q '^${name}:\\**:' /etc/master.passwd",
command => "usermod -p '$password' $name", command => "usermod -p '${password}' ${name}",
require => User[$name], require => User["${name}"],
} }
} }
default: { default: {