Defined Type: apache::balancermember
- Defined in:
- manifests/balancermember.pp
Summary
Defines members of `mod_proxy_balancer`Overview
Sets up a balancer member inside a listening service configuration block in the load balancer’s ‘apache.cfg`.
This type will setup a balancer member inside a listening service configuration block in /etc/apache/apache.cfg on the load balancer. Currently it only has the ability to specify the instance name, url and an array of options. More features can be added as needed. The best way to implement this is to export this resource for all apache balancer member servers, and then collect them on the main apache load balancer.
Note:
Currently requires the puppetlabs/concat module on the Puppet Forge and uses storeconfigs on the Puppet Server to export/collect resources from all balancer members.
41 42 43 44 45 46 47 48 49 50 |
# File 'manifests/balancermember.pp', line 41
define apache::balancermember (
String $balancer_cluster,
Apache::ModProxyProtocol $url = "http://${$facts['networking']['fqdn']}/",
Array $options = [],
) {
concat::fragment { "BalancerMember ${name}":
target => "apache_balancer_${balancer_cluster}",
content => inline_template(" BalancerMember ${url} <%= @options.join ' ' %>\n"),
}
}
|