/[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 361 - (show annotations) (download)
Sun Nov 21 23:23:59 2010 UTC (13 years, 4 months ago) by misc
File size: 897 byte(s)
- move apache requirement in the blog class ( so we do not forget it )
- since apache::mod_php implie apache::base, remove redundant include

1 #TODO:
2 # - add the creation of the user 'blog' in puppet
3 class blog {
4 package { 'mysql':
5 ensure => installed
6 }
7
8 package { 'wget':
9 ensure => installed
10 }
11
12 include apache::mod_php
13
14 package { 'php-mysql':
15 ensure => installed
16 }
17
18
19 file { "check_new-blog-post":
20 path => "/usr/local/bin/check_new-blog-post.sh",
21 ensure => present,
22 owner => blog,
23 group => blog,
24 mode => 755,
25 content => template("blog/check_new-blog-post.sh")
26 }
27
28 file { "/var/lib/blog":
29 ensure => directory,
30 owner => blog,
31 group => blog,
32 mode => 644,
33 }
34
35 cron { blog:
36 user => blog,
37 minute => '*/15',
38 command => "/usr/local/bin/check_new-blog-post.sh",
39 require => File["check_new-blog-post"]
40 }
41 }

  ViewVC Help
Powered by ViewVC 1.1.30