/[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 1042 by misc, Sat Feb 12 14:03:23 2011 UTC revision 1043 by misc, Sat Feb 12 14:03:24 2011 UTC
# Line 8  class blog { Line 8  class blog {
8          home => "/var/lib/blog",          home => "/var/lib/blog",
9      }      }
10    
     include apache::mod_php  
     include mysql  
     apache::vhost_other_app { "blog-test.$domain":  
         vhost_file => "blog/blogs_vhosts.conf",  
     }  
   
11      package { ['wget','php-mysql']:      package { ['wget','php-mysql']:
12          ensure => installed          ensure => installed
13      }      }
# Line 26  class blog { Line 20  class blog {
20          mode => 755,          mode => 755,
21          content => template("blog/check_new-blog-post.sh")          content => template("blog/check_new-blog-post.sh")
22      }      }
23      
     file { "/var/www/html/blog.$domain":  
         ensure => directory,  
         owner => blog,  
         group => blog,  
         mode => 644,  
     }  
       
24      cron { blog:      cron { blog:
25          user => blog,          user => blog,
26          minute => '*/15',          minute => '*/15',
27          command => "/usr/local/bin/check_new-blog-post.sh",          command => "/usr/local/bin/check_new-blog-post.sh",
28          require => File["check_new-blog-post"]          require => File["check_new-blog-post"]
29      }      }
30    
31        include apache::mod_php
32        include mysql
33        apache::vhost_other_app { "blog-test.$domain":
34            vhost_file => "blog/blogs_vhosts.conf",
35        }
36    
37        file { "/var/www/html/blog.$domain":
38                ensure => directory,
39                owner => blog,
40                group => blog,
41                mode => 644,
42        }
43  }  }

Legend:
Removed from v.1042  
changed lines
  Added in v.1043

  ViewVC Help
Powered by ViewVC 1.1.30