aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/server.pp13
1 files changed, 12 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 45eb516..7f5e679 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,4 +1,5 @@
-class samba::server($workgroup = '') {
+class samba::server($workgroup = '',
+ $server_string = '') {
include samba::server::install
include samba::server::config
include samba::server::service
@@ -21,4 +22,14 @@ class samba::server($workgroup = '') {
require => Augeas['global-section'],
}
+ augeas { 'global-server_string':
+ context => $context,
+ changes => $server_string ? {
+ default => "set \"${target}/server string\" '$server_string'",
+ '' => "rm \"${target}/server string\"",
+ },
+ require => Augeas['global-section'],
+ notify => Class['samba::server::service']
+ }
+
}