aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp11
1 files changed, 7 insertions, 4 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 811013d..ce6f10c 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -2,12 +2,15 @@ class samba::server($workgroup = PCCH) {
include samba::server::install
include samba::server::config
include samba::server::service
-
+
+ $target = "target[. = 'global']"
+
augeas { global:
context => "/files/etc/samba/smb.conf",
changes => [
- "set target[. = 'global']/workgroup $workgroup"
- ],
+ "set ${target} global",
+ "set ${target}/workgroup $workgroup"
+ ],
require => Class["samba::server::config"]
}
-} \ No newline at end of file
+}