aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 15:44:58 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 15:44:58 -0400
commit35c5fad8f6f4703d9ac762f88d82072a50a064f6 (patch)
treead470e4d3d060ff825ecb2f7ae8e693f0058e953 /manifests/server.pp
parentd2f9d18c8eebd08f99872c14e0633a04a0b4cd36 (diff)
downloadpuppet-samba-35c5fad8f6f4703d9ac762f88d82072a50a064f6.tar.gz
puppet-samba-35c5fad8f6f4703d9ac762f88d82072a50a064f6.tar.bz2
alphabatizzzzzzzzzze
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp22
1 files changed, 11 insertions, 11 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index b552578..b8e94b0 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,5 +1,6 @@
-class samba::server($workgroup = '',
- $server_string = '') {
+class samba::server($server_string = '',
+ $workgroup = '') {
+
include samba::server::install
include samba::server::config
include samba::server::service
@@ -14,24 +15,23 @@ class samba::server($workgroup = '',
notify => Class['samba::server::service']
}
- augeas { 'global-workgroup':
+ augeas { 'global-server_string':
context => $context,
- changes => $workgroup ? {
- default => "set ${target}/workgroup '$workgroup'",
- '' => "rm ${target}/workgroup",
+ changes => $server_string ? {
+ default => "set \"${target}/server string\" '$server_string'",
+ '' => "rm \"${target}/server string\"",
},
require => Augeas['global-section'],
notify => Class['samba::server::service']
}
- augeas { 'global-server_string':
+ augeas { 'global-workgroup':
context => $context,
- changes => $server_string ? {
- default => "set \"${target}/server string\" '$server_string'",
- '' => "rm \"${target}/server string\"",
+ changes => $workgroup ? {
+ default => "set ${target}/workgroup '$workgroup'",
+ '' => "rm ${target}/workgroup",
},
require => Augeas['global-section'],
notify => Class['samba::server::service']
}
-
}