From 966d629d680f5d6c288ccff3b6a36b23e1cd9f55 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Fri, 24 Aug 2012 16:07:22 -0400 Subject: implement global security option --- manifests/server.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 ? { -- cgit v1.2.3