aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/user.pp
blob: 2cffe3b9112e4c68d27b57a69aa5f345819f7654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define samba::server::user(
		$user_name = $name ,
		$password ,
	) {
		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']
	}
}