Parent Directory | Revision Log
fix 'ensure' to 'directory'
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 | recurse => true |
24 | } |
25 | cron { blog: |
26 | user => blog, |
27 | hour => 0, |
28 | minute => 15, |
29 | command => "/usr/local/bin/check_new-blog-post.sh", |
30 | require => File["check_new-blog-post"], |
31 | } |
32 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |