From fe78815bbcca0a95adb97903a07561b249254042 Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Wed, 6 May 2015 13:00:51 +0200 Subject: 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 --- manifests/loadbalancer.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manifests') 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', -- cgit 1.2.3-korg