From 12a8a5d6e0419f26265e325a8cf1e4019dc23895 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 29 Aug 2012 13:55:40 -0700 Subject: Add a dependency to ENABLE=1 before starting the service on debian --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 2feacf2..f75051c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -101,7 +101,8 @@ class haproxy ( if ($::osfamily == 'Debian') { file { '/etc/default/haproxy': content => 'ENABLED=1', - require => Package['haproxy'] + require => Package['haproxy'], + before => Service['haproxy'], } } -- cgit v1.2.3