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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (show annotations) (download)
Fri Nov 5 15:46:46 2010 UTC (13 years, 4 months ago) by dams
File size: 832 byte(s)
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