aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/share.pp
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 14:44:06 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 14:44:06 -0400
commit7e40de9d4489d6721e1d01abc95c8bb3bc9e355a (patch)
tree63978edbf3cc8958e385a119d7f172c018bedc2a /manifests/server/share.pp
parent1c4badb6ee219badf7d4369db128f9267cb863c0 (diff)
downloadpuppet-samba-7e40de9d4489d6721e1d01abc95c8bb3bc9e355a.tar.gz
puppet-samba-7e40de9d4489d6721e1d01abc95c8bb3bc9e355a.tar.bz2
quote user input so augeas doesn't choke
Diffstat (limited to 'manifests/server/share.pp')
-rw-r--r--manifests/server/share.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index eb86168..d35adfb 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -13,8 +13,8 @@ define samba::server::share($ensure = present,
augeas { "${name}-section":
context => $context,
changes => $ensure ? {
- present => "set ${target} ${name}",
- default => "rm ${target} ${name}",
+ present => "set ${target} '${name}'",
+ default => "rm ${target} '${name}'",
},
require => Class["samba::server::config"],
notify => Class["samba::server::service"]
@@ -34,7 +34,7 @@ define samba::server::share($ensure = present,
augeas { "${name}-path":
context => $context,
changes => $path ? {
- default => "set ${target}/path ${path}",
+ default => "set ${target}/path '${path}'",
'' => "rm ${target}/path",
},
require => Augeas["${name}-section"],