From 088dd3aa28996ed2b690454f72b0c83f73790b8b Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Mon, 19 Nov 2012 13:03:36 -0800 Subject: Order listening services better With the recent additions of multiple-listen-service ordering, the order using the concat-fragment depended on the end-of-line vs other alphanumeric characters. This is not actually the case with the concat module, so this fixes ordering for services under a small set of edge cases. This adds the smaller edge case of if a balancermember begins with "00". --- manifests/listen.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/listen.pp b/manifests/listen.pp index ee9e320..00636e3 100644 --- a/manifests/listen.pp +++ b/manifests/listen.pp @@ -82,7 +82,7 @@ define haproxy::listen ( ) { # Template uses: $name, $ipaddress, $ports, $options concat::fragment { "${name}_listen_block": - order => "20-${name}", + order => "20-${name}-00", target => '/etc/haproxy/haproxy.cfg', content => template('haproxy/haproxy_listen_block.erb'), } -- cgit v1.2.3