diff options
author | Damien Lallement <dams@mageia.org> | 2010-11-05 15:39:56 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2010-11-05 15:39:56 +0000 |
commit | b22561c0f2bf978fdb9c8ca56ad7247798052a27 (patch) | |
tree | 28ee319dfa177f5f1cadb18a9459c293c6c5d614 /modules/blog | |
parent | cabc5cda30889f14a633ec6a5c33bf84a7ff8771 (diff) | |
download | puppet-b22561c0f2bf978fdb9c8ca56ad7247798052a27.tar puppet-b22561c0f2bf978fdb9c8ca56ad7247798052a27.tar.gz puppet-b22561c0f2bf978fdb9c8ca56ad7247798052a27.tar.bz2 puppet-b22561c0f2bf978fdb9c8ca56ad7247798052a27.tar.xz puppet-b22561c0f2bf978fdb9c8ca56ad7247798052a27.zip |
add the creation of '/var/lib/blog/' in init.pp
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/manifests/init.pp | 9 |
1 files changed, 8 insertions, 1 deletions
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, |