/[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 1259 - (hide annotations) (download)
Thu Mar 3 15:19:13 2011 UTC (13 years ago) by dams
File size: 1289 byte(s)
remove 'mysql' installation on champagne
1 dams 279 class blog {
2 misc 1040
3 dams 1005 user { "blog":
4     groups => apache,
5 dams 1259 comment => "Mageia Blog",
6 dams 1005 ensure => present,
7     managehome => true,
8 misc 1041 home => "/var/lib/blog",
9 dams 1005 }
10    
11 dams 1189 package { ['wget','php-mysql']:
12 misc 746 ensure => installed
13     }
14 dams 276
15 dams 831 file { "check_new-blog-post":
16 misc 746 path => "/usr/local/bin/check_new-blog-post.sh",
17     ensure => present,
18 misc 1042 owner => root,
19     group => root,
20 misc 746 mode => 755,
21     content => template("blog/check_new-blog-post.sh")
22     }
23 misc 1043
24 misc 746 cron { blog:
25     user => blog,
26     minute => '*/15',
27     command => "/usr/local/bin/check_new-blog-post.sh",
28 misc 1047 require => [File["check_new-blog-post"], User['blog']],
29 misc 746 }
30 misc 1043
31     include apache::mod_php
32 misc 1045
33     $blog_location = "/var/www/html/blog.$domain"
34     $blog_domain = "blog-test.$domain"
35 misc 1048
36     apache::vhost_base { "$blog_domain":
37     location => $blog_location,
38     content => template('blog/blogs_vhosts.conf'),
39 misc 1043 }
40    
41 misc 1048 apache::vhost_base { "ssl_$blog_domain":
42     use_ssl => true,
43     vhost => $blog_domain,
44     location => $blog_location,
45     content => template('blog/blogs_vhosts.conf'),
46     }
47    
48 misc 1045 file { "$blog_location":
49 misc 1043 ensure => directory,
50     owner => blog,
51 dams 1112 group => apache,
52 misc 1043 mode => 644,
53     }
54 dams 143 }

  ViewVC Help
Powered by ViewVC 1.1.30