[Mageia-sysadm] [148] add the creation of '/var/lib/blog/' in init.pp
root at mageia.org
root at mageia.org
Fri Nov 5 16:39:56 CET 2010
Revision: 148
Author: dams
Date: 2010-11-05 16:39:56 +0100 (Fri, 05 Nov 2010)
Log Message:
-----------
add the creation of '/var/lib/blog/' in init.pp
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:29:35 UTC (rev 147)
+++ puppet/modules/blog/manifests/init.pp 2010-11-05 15:39:56 UTC (rev 148)
@@ -1,4 +1,5 @@
-#TODO: add the creation of the user 'blog' in puppet
+#TODO:
+# - add the creation of the user 'blog' in puppet
class blog {
package { 'wget':
ensure => installed
@@ -14,6 +15,12 @@
mode => 755,
content => template("blog/check_new-blog-post.sh")
}
+ file { "/var/lib/blog/":
+ ensure => present,
+ owner => blog,
+ group => blog,
+ mode => 644
+ }
cron { blog:
user => blog,
hour => 0,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101105/49325889/attachment.html>
More information about the Mageia-sysadm
mailing list