1 |
#TODO: |
#TODO: |
2 |
# - add the creation of the user 'blog' in puppet |
# - add the creation of the user 'blog' in puppet |
3 |
class blog { |
class blog { |
4 |
include apache::mod_php |
include apache::mod_php |
5 |
include mysql |
include mysql |
6 |
|
|
7 |
package { ['wget','php-mysql']: |
package { ['wget','php-mysql']: |
8 |
ensure => installed |
ensure => installed |
9 |
} |
} |
10 |
|
|
|
|
|
11 |
file { "check_new-blog-post": |
file { "check_new-blog-post": |
12 |
path => "/usr/local/bin/check_new-blog-post.sh", |
path => "/usr/local/bin/check_new-blog-post.sh", |
13 |
ensure => present, |
ensure => present, |
23 |
group => blog, |
group => blog, |
24 |
mode => 644, |
mode => 644, |
25 |
} |
} |
26 |
|
|
27 |
|
file { "/var/www/html/blog.mageia.org": |
28 |
|
ensure => directory, |
29 |
|
owner => blog, |
30 |
|
group => apache, |
31 |
|
mode => 644, |
32 |
|
} |
33 |
|
|
34 |
cron { blog: |
cron { blog: |
35 |
user => blog, |
user => blog, |
36 |
minute => '*/15', |
minute => '*/15', |