Add support for haproxy_service_manage
authorGiulio Fidente <gfidente@redhat.com>
Wed, 6 May 2015 11:00:51 +0000 (13:00 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Mon, 11 May 2015 12:45:09 +0000 (14:45 +0200)
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

index 6b5999a..4250ac9 100644 (file)
 # === 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',