diff --git a/manifests/server/user.pp b/manifests/server/user.pp index d10a602..9f09c9a 100644 --- a/manifests/server/user.pp +++ b/manifests/server/user.pp @@ -6,10 +6,11 @@ ) { require ::samba::server::install + User <| |> -> Samba::Server::User <| |> + exec { "add smb account for ${user_name}": command => "/bin/echo -e '${password}\\n${password}\\n' | /usr/bin/pdbedit --password-from-stdin -a '${user_name}'", unless => "/usr/bin/pdbedit '${user_name}'", - require => [ User[$user_name] ], notify => Class['samba::server::service'] #TODO: Is this really required?? } }