/[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 838 - (show annotations) (download)
Tue Jan 18 17:34:15 2011 UTC (13 years, 3 months ago) by boklm
File size: 981 byte(s)
fix vhost filename
1 #TODO:
2 # - add the creation of the user 'blog' in puppet
3 class blog {
4 include apache::mod_php
5 include mysql
6
7 package { ['wget','php-mysql']:
8 ensure => installed
9 }
10
11 file { "check_new-blog-post":
12 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
20 apache::vhost_other_app { "blog.$domain":
21 vhost_file => "blog/01_blogs_vhosts.conf",
22 }
23
24 file { "/var/lib/blog":
25 ensure => directory,
26 owner => blog,
27 group => blog,
28 mode => 644,
29 }
30
31 file { "/var/www/html/blog.mageia.org":
32 ensure => directory,
33 owner => blog,
34 group => apache,
35 mode => 644,
36 }
37
38 cron { blog:
39 user => blog,
40 minute => '*/15',
41 command => "/usr/local/bin/check_new-blog-post.sh",
42 require => File["check_new-blog-post"]
43 }
44 }

  ViewVC Help
Powered by ViewVC 1.1.30