diff options
author | Adam Jahn <ajjahn@gmail.com> | 2015-04-11 13:32:43 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2015-04-11 13:32:43 -0400 |
commit | 30ba71f6c8316e7f8f2336949a4d40c2b00c5989 (patch) | |
tree | dfefb60ba6a91721591b2ba6171bd1637e8cd87b /manifests/server/user.pp | |
parent | 99b37d9904fd2ac9b587045ddf76b7458a19a559 (diff) | |
download | puppet-samba-30ba71f6c8316e7f8f2336949a4d40c2b00c5989.tar.gz puppet-samba-30ba71f6c8316e7f8f2336949a4d40c2b00c5989.tar.bz2 |
lint formatting
Diffstat (limited to 'manifests/server/user.pp')
-rw-r--r-- | manifests/server/user.pp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/manifests/server/user.pp b/manifests/server/user.pp index 2cffe3b..e3d84cc 100644 --- a/manifests/server/user.pp +++ b/manifests/server/user.pp @@ -1,13 +1,11 @@ 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'] - } + $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'] + } } |