aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/server.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index b3de661..66d10b1 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,4 +1,5 @@
class samba::server($interfaces = '',
+ $security = '',
$server_string = '',
$workgroup = '') {
@@ -26,6 +27,16 @@ class samba::server($interfaces = '',
notify => Class['samba::server::service']
}
+ augeas { 'global-security':
+ context => $context,
+ changes => $security ? {
+ default => "set \"${target}/security\" '$security'",
+ '' => "rm \"${target}/security\"",
+ },
+ require => Augeas['global-section'],
+ notify => Class['samba::server::service']
+ }
+
augeas { 'global-server_string':
context => $context,
changes => $server_string ? {