aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorjonoterc <jon_obuchowski@terc.edu>2013-10-10 17:26:29 -0400
committerAdam Jahn <ajjahn@gmail.com>2014-01-10 18:14:45 -0500
commit8bf623bca5a1e9d5da1ed05a8a9cb2a773ee55fb (patch)
tree193e9676063dc517b8035136a568d45e136529cd /manifests
parent2238e00d68f486a7dbb18de66465f0acff070c26 (diff)
downloadpuppet-samba-8bf623bca5a1e9d5da1ed05a8a9cb2a773ee55fb.tar.gz
puppet-samba-8bf623bca5a1e9d5da1ed05a8a9cb2a773ee55fb.tar.bz2
enabling installation of samba account checking/creation shell scripts
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 0dfda00..996149f 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -30,6 +30,24 @@ class samba::server($interfaces = '',
'unix password sync': value => $unix_password_sync;
'workgroup': value => $workgroup;
}
+
+ file {'check_samba_user':
+ # script checks to see if a samba account exists for a given user
+ path => '/sbin/check_samba_user',
+ owner => root,
+ group => root,
+ mode => "0755",
+ content => template("${module_name}/check_samba_user"),
+ }
+
+ file {'add_samba_user':
+ # script creates a new samba account for a given user and password
+ path => '/sbin/add_samba_user',
+ owner => root,
+ group => root,
+ mode => "0755",
+ content => template("${module_name}/add_samba_user"),
+ }
}
define set_samba_option ( $value = '', $signal = 'samba::server::service' ) {