/[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 224 - (show annotations) (download)
Wed Nov 10 10:58:04 2010 UTC (10 years ago) by dams
File size: 786 byte(s)
Add 'nail' on 'blog' and 'mod_php' on 'champagne'
1 #TODO:
2 # - add the creation of the user 'blog' in puppet
3 class blog {
4 package { 'wget':
5 ensure => installed
6 }
7 package { 'nail':
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 minute => 15,
27 command => "/usr/local/bin/check_new-blog-post.sh",
28 require => File["check_new-blog-post"]
29 }
30 }

  ViewVC Help
Powered by ViewVC 1.1.28