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

Contents of /puppet/modules/apache/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 167 - (show annotations) (download)
Fri Nov 5 23:29:16 2010 UTC (13 years, 4 months ago) by misc
File size: 1729 byte(s)
- add a define to ease catalyst application deployement

1 class apache {
2
3 class base {
4 package { "apache-mpm-prefork":
5 alias => apache,
6 ensure => installed
7 }
8
9 service { httpd:
10 alias => apache,
11 ensure => running,
12 subscribe => [ Package['apache-mpm-prefork'] ],
13 }
14
15 file { "customization.conf":
16 ensure => present,
17 path => "/etc/httpd/conf.d/customization.conf",
18 content => template("apache/customization.conf"),
19 require => Package["apache"],
20 notify => Service["apache"],
21 owner => root,
22 group => root,
23 mode => 644,
24 }
25 }
26
27 class mod_php inherits base {
28 package { "apache-mod_php":
29 ensure => installed
30 }
31 }
32
33 class mod_perl inherits base {
34 package { "apache-mod_perl":
35 ensure => installed
36 }
37 }
38
39 class mod_fcgid inherits base {
40 package { "apache-mod_fcgid":
41 ensure => installed
42 }
43 }
44
45 class mod_fastcgi inherits base {
46 package { "apache-mod_fastcgi":
47 ensure => installed
48 }
49 }
50
51 class mod_wsgi inherits base {
52 package { "apache-mod_wsgi":
53 ensure => installed
54 }
55 }
56
57 define vhost_catalyst_app($script, $process = 4, $force_ssl = false) {
58
59 include apache::mod_fastcgi
60
61 file { "$name.conf":
62 path => "/etc/httpd/conf/vhosts.d/$name.conf",
63 ensure => "present",
64 owner => root,
65 group => root,
66 mode => 644,
67 notify => Service['apache'],
68 content => template("apache/vhost_catalyst_app.conf")
69 }
70 }
71 }

  ViewVC Help
Powered by ViewVC 1.1.30