[Mageia-sysadm] [386] useradd module does not support password change, use usermod
root at mageia.org
root at mageia.org
Mon Nov 22 13:29:28 CET 2010
Revision: 386
Author: blino
Date: 2010-11-22 13:29:28 +0100 (Mon, 22 Nov 2010)
Log Message:
-----------
useradd module does not support password change, use usermod
Modified Paths:
--------------
puppet/modules/buildsystem/manifests/init.pp
Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp 2010-11-22 12:13:10 UTC (rev 385)
+++ puppet/modules/buildsystem/manifests/init.pp 2010-11-22 12:29:28 UTC (rev 386)
@@ -48,9 +48,15 @@
managehome => true,
gid => $build_login,
shell => "/bin/bash",
- password => '*', # set password to * to unlock the account but forbid login through login
+ notify => Exec["unlock$build_login"],
}
+ # set password to * to unlock the account but forbid login through login
+ exec { "unlock$build_login":
+ command => "usermod -p '*' $build_login",
+ refreshonly => true,
+ }
+
file { $build_home_dir:
ensure => "directory",
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101122/161bc059/attachment.html>
More information about the Mageia-sysadm
mailing list