diff options
Diffstat (limited to 'modules/buildsystem/manifests/init.pp')
-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: |