/[adm]/puppet/modules/blog/manifests/init.pp
ViewVC logotype

Annotation of /puppet/modules/blog/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 232 - (hide annotations) (download)
Wed Nov 10 14:03:49 2010 UTC (13 years, 4 months ago) by dams
File size: 725 byte(s)
Fix cron for check new blog post
1 dams 148 #TODO:
2     # - add the creation of the user 'blog' in puppet
3 dams 143 class blog {
4     package { 'wget':
5     ensure => installed
6     }
7     file { "check_new-blog-post":
8 dams 146 path => "/usr/local/bin/check_new-blog-post.sh",
9 dams 143 ensure => present,
10     owner => blog,
11     group => blog,
12     mode => 755,
13     content => template("blog/check_new-blog-post.sh")
14     }
15 dams 149 file { "/var/lib/blog":
16     ensure => directory,
17 dams 148 owner => blog,
18     group => blog,
19 dams 149 mode => 644,
20 dams 148 }
21 dams 143 cron { blog:
22     user => blog,
23 dams 232 minute => '*/15',
24 dams 146 command => "/usr/local/bin/check_new-blog-post.sh",
25 dams 153 require => File["check_new-blog-post"]
26 dams 143 }
27     }

  ViewVC Help
Powered by ViewVC 1.1.30