[Mageia-sysadm] [149] fix 'ensure' to 'directory'

root at mageia.org root at mageia.org
Fri Nov 5 16:46:46 CET 2010


Revision: 149
Author:   dams
Date:     2010-11-05 16:46:46 +0100 (Fri, 05 Nov 2010)
Log Message:
-----------
fix 'ensure' to 'directory'

Modified Paths:
--------------
    puppet/modules/blog/manifests/init.pp

Modified: puppet/modules/blog/manifests/init.pp
===================================================================
--- puppet/modules/blog/manifests/init.pp	2010-11-05 15:39:56 UTC (rev 148)
+++ puppet/modules/blog/manifests/init.pp	2010-11-05 15:46:46 UTC (rev 149)
@@ -15,11 +15,12 @@
         	mode => 755,
         	content => template("blog/check_new-blog-post.sh")
     	}
-	file { "/var/lib/blog/":
-                ensure => present,
+	file { "/var/lib/blog":
+                ensure => directory,
                 owner => blog,
                 group => blog,
-                mode => 644
+                mode => 644,
+		recurse  => true
         }
 	cron { blog:
         	user => blog,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101105/bb9022a9/attachment.html>


More information about the Mageia-sysadm mailing list