aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/blog/manifests/init.pp28
1 files changed, 14 insertions, 14 deletions
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,
+ }
}