From 6958968f5d8b55d06ed55b3ae1e5cc4304de4f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Fri, 31 Jan 2014 16:28:06 +0100 Subject: [PATCH 1/2] let's haproxy managing its reload itself Without this changes haproxy won't watch changes on /etc/haproxy/haproxy.conf to know if the service has to be reloaded. close #130 --- manifests/loadbalancer.pp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index efa517e5..1aa2792b 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -56,9 +56,7 @@ class cloud::loadbalancer( $galera_ip = $os_params::galera_ip ){ - class { 'haproxy': - manage_service => false, - } + class { 'haproxy': } class { 'keepalived': } From fe5a1721e5c651443d3b14830d37322b0125106a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Fri, 31 Jan 2014 16:57:21 +0100 Subject: [PATCH 2/2] refresh the test-suite --- spec/classes/cloud_loadbalancer_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/classes/cloud_loadbalancer_spec.rb b/spec/classes/cloud_loadbalancer_spec.rb index 3fb171f6..8fee5867 100644 --- a/spec/classes/cloud_loadbalancer_spec.rb +++ b/spec/classes/cloud_loadbalancer_spec.rb @@ -64,9 +64,7 @@ describe 'cloud::loadbalancer' do end it 'configure haproxy server' do - should contain_class('haproxy').with({ - 'manage_service' => 'false', - }) + should contain_class('haproxy') end # configure haproxy server it 'configure keepalived server' do