1 |
#TODO: |
2 |
# - add the creation of the user 'blog' in puppet |
3 |
class blog { |
4 |
package { 'wget': |
5 |
ensure => installed |
6 |
} |
7 |
#package { 'postfix': |
8 |
# ensure => installed |
9 |
#} |
10 |
file { "check_new-blog-post": |
11 |
path => "/usr/local/bin/check_new-blog-post.sh", |
12 |
ensure => present, |
13 |
owner => blog, |
14 |
group => blog, |
15 |
mode => 755, |
16 |
content => template("blog/check_new-blog-post.sh") |
17 |
} |
18 |
file { "/var/lib/blog": |
19 |
ensure => directory, |
20 |
owner => blog, |
21 |
group => blog, |
22 |
mode => 644, |
23 |
} |
24 |
cron { blog: |
25 |
user => blog, |
26 |
hour => 0, |
27 |
minute => 15, |
28 |
command => "/usr/local/bin/check_new-blog-post.sh", |
29 |
require => File["check_new-blog-post"], |
30 |
} |
31 |
} |