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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2694 - (hide annotations) (download)
Sun Mar 25 13:22:05 2012 UTC (9 years, 6 months ago) by misc
File size: 1185 byte(s)
split 2 more vhost class
1 misc 80 class apache {
2 boklm 1617 define vhost_catalyst_app($script, $location = '', $process = 4, $use_ssl = false, $vhost = false) {
3 misc 928
4 misc 2684 include apache::mod::fastcgi
5 misc 2689 apache::vhost::base { $name:
6 misc 2225 vhost => $vhost,
7 misc 928 use_ssl => $use_ssl,
8 misc 2225 content => template("apache/vhost_catalyst_app.conf"),
9 misc 167 }
10     }
11 misc 182
12 misc 742 define vhost_simple($location) {
13     include apache::base
14 misc 2689 apache::vhost::base { $name:
15 misc 928 location => $location,
16     }
17 misc 742 }
18    
19 boklm 1319 define vhost_redirect($url,
20 misc 2225 $vhost = false,
21     $use_ssl = false) {
22 misc 931 include apache::base
23 misc 2689 apache::vhost::base { $name:
24 boklm 1319 use_ssl => $use_ssl,
25     vhost => $vhost,
26 misc 931 content => template("apache/vhost_redirect.conf"),
27     }
28     }
29    
30 misc 1103 define vhost_reverse_proxy($url,
31     $vhost = false,
32     $use_ssl = false) {
33 misc 2682 include apache::mod::proxy
34 misc 2689 apache::vhost::base { $name:
35 misc 1102 use_ssl => $use_ssl,
36 misc 1103 vhost => $vhost,
37 misc 778 content => template("apache/vhost_reverse_proxy.conf")
38 misc 928 }
39 misc 778 }
40    
41 misc 80 }

  ViewVC Help
Powered by ViewVC 1.1.28