aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
authorLebedev Vadim <abraham1901@gmail.com>2013-03-19 19:26:05 +0400
committerAdam Jahn <ajjahn@gmail.com>2013-03-19 21:14:57 -0400
commitb8d1efbb43fb663deb3d4ae12e821a626a4f9980 (patch)
tree263bad67d553e82af6847b7c6afae0c5ccfd7f42 /manifests/server.pp
parent32f1dc699c77ae665d8c8e39d8d9c2c3fb497df9 (diff)
downloadpuppet-samba-b8d1efbb43fb663deb3d4ae12e821a626a4f9980.tar.gz
puppet-samba-b8d1efbb43fb663deb3d4ae12e821a626a4f9980.tar.bz2
Fix interfaces options
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp4
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,