diff options
author | Marc <mmontgomery@pcch.org> | 2012-08-17 09:39:52 -0400 |
---|---|---|
committer | Marc <mmontgomery@pcch.org> | 2012-08-17 09:39:52 -0400 |
commit | e78a712e1152fd8981b87a6bb035777d0256f268 (patch) | |
tree | e832d32239fbbbec9d5cb584b836a5917cf788ce /manifests/server.pp | |
download | puppet-samba-e78a712e1152fd8981b87a6bb035777d0256f268.tar.gz puppet-samba-e78a712e1152fd8981b87a6bb035777d0256f268.tar.bz2 |
initial commit current progress creates shares in ensures samba is installed and daemon is running, can add shares to smb.conf, and can set global variables
Diffstat (limited to 'manifests/server.pp')
-rw-r--r-- | manifests/server.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp new file mode 100644 index 0000000..172b132 --- /dev/null +++ b/manifests/server.pp @@ -0,0 +1,13 @@ +class samba::server($workgroup = PCCH) { + include samba::server::install + include samba::server::config + include samba::server::service + + augeas { global: + context => "/files/etc/samba/smb.conf", + changes => [ + "set target[. = 'global']/workgroup $workgroup" + ], + require => Class["samba::server::config"] + } +}
\ No newline at end of file |