diff options
-rw-r--r-- | modules/blog/manifests/init.pp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index 2ada31ca..2318b3cf 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -1,14 +1,13 @@ #TODO: # - add the creation of the user 'blog' in puppet class blog { - include apache::mod_php + include apache::mod_php include mysql package { ['wget','php-mysql']: ensure => installed } - file { "check_new-blog-post": path => "/usr/local/bin/check_new-blog-post.sh", ensure => present, @@ -24,7 +23,14 @@ class blog { group => blog, mode => 644, } - + + file { "/var/www/html/blog.mageia.org": + ensure => directory, + owner => blog, + group => apache, + mode => 644, + } + cron { blog: user => blog, minute => '*/15', |