blob: b8f2e61ef1d2681d68e768b62ab8b8ca9792f653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# == Class samba::server::user
#
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']
}
}
|