]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
comment is really what it's called, quotestring in case of spaces
authorAdam Jahn <ajjahn@gmail.com>
Fri, 24 Aug 2012 18:36:12 +0000 (14:36 -0400)
committerAdam Jahn <ajjahn@gmail.com>
Fri, 24 Aug 2012 18:36:12 +0000 (14:36 -0400)
manifests/server/share.pp

index 330a0b05b2372fef182dba618eabf038ac71308d..1c3888e60bbbd52141306082d20b1d1f692f5539 100644 (file)
@@ -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"],