summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2012-08-29 13:55:40 -0700
committerHunter Haugen <h.haugen@gmail.com>2012-08-29 14:12:48 -0700
commit12a8a5d6e0419f26265e325a8cf1e4019dc23895 (patch)
tree71367a4ce50c542427cf976b64fc4888eadd7b6e /manifests
parent6bb22697689bb7a8ed76afe69a4a245760d12708 (diff)
Add a dependency to ENABLE=1 before starting the service on debian
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
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'],
}
}