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

  ViewVC Help
Powered by ViewVC 1.1.30