8 |
home => "/var/lib/blog", |
home => "/var/lib/blog", |
9 |
} |
} |
10 |
|
|
|
include apache::mod_php |
|
|
include mysql |
|
|
apache::vhost_other_app { "blog-test.$domain": |
|
|
vhost_file => "blog/blogs_vhosts.conf", |
|
|
} |
|
|
|
|
11 |
package { ['wget','php-mysql']: |
package { ['wget','php-mysql']: |
12 |
ensure => installed |
ensure => installed |
13 |
} |
} |
20 |
mode => 755, |
mode => 755, |
21 |
content => template("blog/check_new-blog-post.sh") |
content => template("blog/check_new-blog-post.sh") |
22 |
} |
} |
23 |
|
|
|
file { "/var/www/html/blog.$domain": |
|
|
ensure => directory, |
|
|
owner => blog, |
|
|
group => blog, |
|
|
mode => 644, |
|
|
} |
|
|
|
|
24 |
cron { blog: |
cron { blog: |
25 |
user => blog, |
user => blog, |
26 |
minute => '*/15', |
minute => '*/15', |
27 |
command => "/usr/local/bin/check_new-blog-post.sh", |
command => "/usr/local/bin/check_new-blog-post.sh", |
28 |
require => File["check_new-blog-post"] |
require => File["check_new-blog-post"] |
29 |
} |
} |
30 |
|
|
31 |
|
include apache::mod_php |
32 |
|
include mysql |
33 |
|
apache::vhost_other_app { "blog-test.$domain": |
34 |
|
vhost_file => "blog/blogs_vhosts.conf", |
35 |
|
} |
36 |
|
|
37 |
|
file { "/var/www/html/blog.$domain": |
38 |
|
ensure => directory, |
39 |
|
owner => blog, |
40 |
|
group => blog, |
41 |
|
mode => 644, |
42 |
|
} |
43 |
} |
} |