aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp13
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