From 249fb9ae22a5fc08dd3afe84e4d7557e87b4e6ff Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 12 Feb 2011 14:03:24 +0000 Subject: - group logically the 2 parts of the file, scripts at first, websites at the end --- modules/blog/manifests/init.pp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'modules/blog/manifests/init.pp') diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp index a1a848bc..dc6a2228 100644 --- a/modules/blog/manifests/init.pp +++ b/modules/blog/manifests/init.pp @@ -8,12 +8,6 @@ class blog { home => "/var/lib/blog", } - include apache::mod_php - include mysql - apache::vhost_other_app { "blog-test.$domain": - vhost_file => "blog/blogs_vhosts.conf", - } - package { ['wget','php-mysql']: ensure => installed } @@ -26,18 +20,24 @@ class blog { mode => 755, content => template("blog/check_new-blog-post.sh") } - - file { "/var/www/html/blog.$domain": - ensure => directory, - owner => blog, - group => blog, - mode => 644, - } - + cron { blog: user => blog, minute => '*/15', command => "/usr/local/bin/check_new-blog-post.sh", require => File["check_new-blog-post"] } + + include apache::mod_php + include mysql + apache::vhost_other_app { "blog-test.$domain": + vhost_file => "blog/blogs_vhosts.conf", + } + + file { "/var/www/html/blog.$domain": + ensure => directory, + owner => blog, + group => blog, + mode => 644, + } } -- cgit v1.2.1