aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/user.pp
blob: e3d84cccc6641bc5b184d4acb44691ccac9c27c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
define samba::server::user(
  $password,
  $user_name = $name,
) {
  exec { "add smb account for ${user_name}":
    command => "/sbin/add_samba_user '${user_name}' '${password}'" ,
    unless  => "/sbin/check_samba_user '${user_name}'" ,
    require => [ User[$user_name] ],
    notify  => Class['samba::server::service']
  }
}