aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2015-05-06 13:00:51 +0200
committerGiulio Fidente <gfidente@redhat.com>2015-05-11 14:45:09 +0200
commitfe78815bbcca0a95adb97903a07561b249254042 (patch)
treec7ad11b1b67f75e06a17f7c97cd6e51d912460c9 /manifests
parenta388f84654701f5d6604e0833a6a8fe1b90fcfdd (diff)
Add support for haproxy_service_manage
We want to let the caller decide upon having the haproxy service started and enabled or not on boot. Change-Id: I24a9fd2245a974120892a8887c8b58647c65cba9
Diffstat (limited to 'manifests')
-rw-r--r--manifests/loadbalancer.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp
index 6b5999a..4250ac9 100644
--- a/manifests/loadbalancer.pp
+++ b/manifests/loadbalancer.pp
@@ -20,7 +20,11 @@
# === Parameters:
#
# [*manage_vip*]
-# Whether to enable keepalived to manage the VIPs or not
+# Whether to configure keepalived to manage the VIPs or not.
+# Defaults to true
+#
+# [*haproxy_service_manage*]
+# Will be passed as value for service_manage to haproxy module.
# Defaults to true
#
# [*controller_host*]
@@ -148,6 +152,7 @@ class tripleo::loadbalancer (
$public_virtual_interface,
$public_virtual_ip,
$manage_vip = true,
+ $haproxy_service_manage = true,
$controller_host = undef,
$controller_hosts = undef,
$controller_hosts_names = undef,
@@ -235,6 +240,7 @@ class tripleo::loadbalancer (
sysctl::value { 'net.ipv4.ip_nonlocal_bind': value => '1' }
class { '::haproxy':
+ service_manage => $haproxy_service_manage,
global_options => {
'log' => '/dev/log local0',
'pidfile' => '/var/run/haproxy.pid',