/[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 2694 - (show annotations) (download)
Sun Mar 25 13:22:05 2012 UTC (12 years ago) by misc
File size: 1185 byte(s)
split 2 more vhost class
1 class apache {
2 define vhost_catalyst_app($script, $location = '', $process = 4, $use_ssl = false, $vhost = false) {
3
4 include apache::mod::fastcgi
5 apache::vhost::base { $name:
6 vhost => $vhost,
7 use_ssl => $use_ssl,
8 content => template("apache/vhost_catalyst_app.conf"),
9 }
10 }
11
12 define vhost_simple($location) {
13 include apache::base
14 apache::vhost::base { $name:
15 location => $location,
16 }
17 }
18
19 define vhost_redirect($url,
20 $vhost = false,
21 $use_ssl = false) {
22 include apache::base
23 apache::vhost::base { $name:
24 use_ssl => $use_ssl,
25 vhost => $vhost,
26 content => template("apache/vhost_redirect.conf"),
27 }
28 }
29
30 define vhost_reverse_proxy($url,
31 $vhost = false,
32 $use_ssl = false) {
33 include apache::mod::proxy
34 apache::vhost::base { $name:
35 use_ssl => $use_ssl,
36 vhost => $vhost,
37 content => template("apache/vhost_reverse_proxy.conf")
38 }
39 }
40
41 }

  ViewVC Help
Powered by ViewVC 1.1.30