diff options
author | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:36:12 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:36:12 -0400 |
commit | 9f67b46e97a3e342bf10db51ea91abb4db0af947 (patch) | |
tree | 13e4983f7e4cf88a47da1e3de64d384012ec8418 /manifests/server/share.pp | |
parent | 4eb0354cf15068a02eb3f873d3fc241e55f75fc5 (diff) | |
download | puppet-samba-9f67b46e97a3e342bf10db51ea91abb4db0af947.tar.gz puppet-samba-9f67b46e97a3e342bf10db51ea91abb4db0af947.tar.bz2 |
comment is really what it's called, quotestring in case of spaces
Diffstat (limited to 'manifests/server/share.pp')
-rw-r--r-- | manifests/server/share.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 330a0b0..1c3888e 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -1,5 +1,5 @@ define samba::server::share($ensure = present, - $description = '', + $comment = '', $path = '', $browsable = '', $create_mask = '', @@ -22,8 +22,8 @@ define samba::server::share($ensure = present, if $ensure == "present" { augeas { "${name}-comment": context => $context, - changes => $description ? { - default => "set ${target}/comment ${description}", + changes => $comment ? { + default => "set ${target}/comment '${comment}'", '' => "rm ${target}/comment", }, require => Augeas["${name}-section"], |