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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 833 - (hide annotations) (download)
Tue Jan 18 17:07:54 2011 UTC (13 years, 3 months ago) by dams
File size: 1130 byte(s)
typo (vhost)
1 dams 148 #TODO:
2     # - add the creation of the user 'blog' in puppet
3 dams 279 class blog {
4 dams 829 include apache::mod_php
5 misc 746 include mysql
6 misc 361
7 misc 746 package { ['wget','php-mysql']:
8     ensure => installed
9     }
10 dams 276
11 dams 831 file { "check_new-blog-post":
12 misc 746 path => "/usr/local/bin/check_new-blog-post.sh",
13     ensure => present,
14     owner => blog,
15     group => blog,
16     mode => 755,
17     content => template("blog/check_new-blog-post.sh")
18     }
19 dams 279
20 dams 833 file { "01_blogs_vhosts":
21     path => "/etc/httpd/conf/vhosts.d/01_blogs_vhosts.conf",
22 dams 831 ensure => present,
23     owner => root,
24     group => root,
25     mode => 644,
26     content => template("blog/01_blogs_vhosts.conf")
27     }
28    
29 misc 746 file { "/var/lib/blog":
30     ensure => directory,
31     owner => blog,
32     group => blog,
33     mode => 644,
34     }
35 dams 829
36     file { "/var/www/html/blog.mageia.org":
37     ensure => directory,
38     owner => blog,
39     group => apache,
40     mode => 644,
41     }
42    
43 misc 746 cron { blog:
44     user => blog,
45     minute => '*/15',
46     command => "/usr/local/bin/check_new-blog-post.sh",
47     require => File["check_new-blog-post"]
48     }
49 dams 143 }

  ViewVC Help
Powered by ViewVC 1.1.30