Add a dependency to ENABLE=1 before starting the service on debian
authorHunter Haugen <h.haugen@gmail.com>
Wed, 29 Aug 2012 20:55:40 +0000 (13:55 -0700)
committerHunter Haugen <h.haugen@gmail.com>
Wed, 29 Aug 2012 21:12:48 +0000 (14:12 -0700)
manifests/init.pp

index 2feacf2..f75051c 100644 (file)
@@ -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'],
       }
     }