80 |
mode => 644, |
mode => 644, |
81 |
} |
} |
82 |
} |
} |
83 |
|
|
84 |
|
class mod_proxy inherits base { |
85 |
|
package { "apache-mod_proxy": |
86 |
|
ensure => installed |
87 |
|
} |
88 |
|
} |
89 |
|
|
90 |
define vhost_redirect_ssl() { |
define vhost_redirect_ssl() { |
91 |
file { "redirect_ssl_$name.conf": |
file { "redirect_ssl_$name.conf": |
183 |
} |
} |
184 |
} |
} |
185 |
|
|
186 |
|
define vhost_reverse_proxy($url) { |
187 |
|
include apache::mod_proxy |
188 |
|
file { "$name.conf": |
189 |
|
path => "/etc/httpd/conf/vhosts.d/$name.conf", |
190 |
|
ensure => "present", |
191 |
|
owner => root, |
192 |
|
group => root, |
193 |
|
mode => 644, |
194 |
|
notify => Service['apache'], |
195 |
|
content => template("apache/vhost_reverse_proxy.conf") |
196 |
|
} |
197 |
|
} |
198 |
|
|
199 |
define webapp_other($webapp_file) { |
define webapp_other($webapp_file) { |
200 |
include apache::base |
include apache::base |
201 |
$webappname = $name |
$webappname = $name |