diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp index 9b6d3c0..bc1e3d7 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -20,6 +20,7 @@ class samba::server($interfaces = '', set_samba_option { + 'interfaces': value => $interfaces; 'bind interfaces only': value => 'yes'; 'security': value => $security; 'server string': value => $server_string; @@ -32,9 +33,10 @@ define set_samba_option ( $value = '', $signal = 'samba::server::service' ) { $context = $samba::server::context $target = $samba::server::target $changes = $value ? { - default => "set \"${target}/$name\" $value", + default => "set \"${target}/$name\" \"$value\"", '' => "rm ${target}/$name", } + augeas { "samba-$name": context => $context, changes => $changes, |