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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.481  
changed lines
  Added in v.746

  ViewVC Help
Powered by ViewVC 1.1.30