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