diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-22 12:29:28 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-22 12:29:28 +0000 |
commit | 47f9722b4592fe05a2f7ce7ddf69797209c99a4f (patch) | |
tree | c414637145cb67465218ed81f5de619f996fe8ae /modules/buildsystem | |
parent | ca46a7ca2e2c6a8c811ba12f0e85441c9ec9ae3d (diff) | |
download | puppet-47f9722b4592fe05a2f7ce7ddf69797209c99a4f.tar puppet-47f9722b4592fe05a2f7ce7ddf69797209c99a4f.tar.gz puppet-47f9722b4592fe05a2f7ce7ddf69797209c99a4f.tar.bz2 puppet-47f9722b4592fe05a2f7ce7ddf69797209c99a4f.tar.xz puppet-47f9722b4592fe05a2f7ce7ddf69797209c99a4f.zip |
useradd module does not support password change, use usermod
Diffstat (limited to 'modules/buildsystem')
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index 680b5257..7206e8cf 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -48,7 +48,13 @@ class buildsystem { 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: |