/[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 2690 - (hide annotations) (download)
Sun Mar 25 12:47:20 2012 UTC (12 years, 1 month ago) by misc
File size: 2330 byte(s)
split redirect_ssl in a separate file
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 1193 define vhost_django_app($module = false, $module_path = false, $use_ssl = false, $aliases= {}) {
13 misc 2686 include apache::mod::wsgi
14 misc 2689 apache::vhost::base { $name:
15 misc 934 use_ssl => $use_ssl,
16 misc 1193 content => template("apache/vhost_django_app.conf"),
17     aliases => $aliases,
18 misc 621 }
19 misc 928
20 misc 612 # module is a ruby reserved keyword, cannot be used in templates
21     $django_module = $module
22 misc 182 file { "$name.wsgi":
23 misc 201 path => "/usr/local/lib/wsgi/$name.wsgi",
24 misc 182 mode => 755,
25     notify => Service['apache'],
26 misc 2225 content => template("apache/django.wsgi"),
27 misc 182 }
28     }
29 boklm 280
30 misc 935 define vhost_wsgi($wsgi_path, $aliases = {}, $server_aliases = []) {
31 misc 2686 include apache::mod::wsgi
32 misc 2689 apache::vhost::base { $name:
33 misc 933 aliases => $aliases,
34 misc 935 server_aliases => $server_aliases,
35 misc 2225 content => template("apache/vhost_wsgi.conf"),
36 misc 812 }
37     }
38    
39 boklm 280 define vhost_other_app($vhost_file) {
40 misc 412 include apache::base
41 misc 2225 apache::config { "/etc/httpd/conf/vhosts.d/$name.conf":
42     content => template($vhost_file),
43 boklm 280 }
44     }
45    
46 misc 742 define vhost_simple($location) {
47     include apache::base
48 misc 2689 apache::vhost::base { $name:
49 misc 928 location => $location,
50     }
51 misc 742 }
52    
53 boklm 1319 define vhost_redirect($url,
54 misc 2225 $vhost = false,
55     $use_ssl = false) {
56 misc 931 include apache::base
57 misc 2689 apache::vhost::base { $name:
58 boklm 1319 use_ssl => $use_ssl,
59     vhost => $vhost,
60 misc 931 content => template("apache/vhost_redirect.conf"),
61     }
62     }
63    
64 misc 1103 define vhost_reverse_proxy($url,
65     $vhost = false,
66     $use_ssl = false) {
67 misc 2682 include apache::mod::proxy
68 misc 2689 apache::vhost::base { $name:
69 misc 1102 use_ssl => $use_ssl,
70 misc 1103 vhost => $vhost,
71 misc 778 content => template("apache/vhost_reverse_proxy.conf")
72 misc 928 }
73 misc 778 }
74    
75 misc 80 }

  ViewVC Help
Powered by ViewVC 1.1.30