15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'manifests/mod/proxy_balancer.pp', line 15
class apache::mod::proxy_balancer (
Boolean $manager = false,
Stdlib::Unixpath $manager_path = '/balancer-manager',
Array[Stdlib::IP::Address] $allow_from = ['127.0.0.1', '::1'],
) {
require apache::mod::proxy
require apache::mod::proxy_http
::apache::mod { 'slotmem_shm': }
::apache::mod { 'proxy_balancer': }
if $manager {
include apache::mod::status
file { 'proxy_balancer.conf':
ensure => file,
path => "${apache::mod_dir}/proxy_balancer.conf",
mode => $apache::file_mode,
content => epp('apache/mod/proxy_balancer.conf.epp', { 'manager_path' => $manager_path, 'allow_from' => $allow_from, }),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
notify => Class['apache::service'],
}
}
}
|