From b22561c0f2bf978fdb9c8ca56ad7247798052a27 Mon Sep 17 00:00:00 2001 From: Damien Lallement Date: Fri, 5 Nov 2010 15:39:56 +0000 Subject: add the creation of '/var/lib/blog/' in init.pp --- modules/blog/manifests/init.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index ee6267ca..cc124ce4 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -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 @@ class blog { 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, -- cgit v1.2.1