/etc/default/haproxy applies to all Debian, not just Ubuntu
authorHunter Haugen <h.haugen@gmail.com>
Wed, 29 Aug 2012 20:54:33 +0000 (13:54 -0700)
committerHunter Haugen <h.haugen@gmail.com>
Wed, 29 Aug 2012 21:12:48 +0000 (14:12 -0700)
manifests/init.pp

index 8fc46ac..93c7e17 100644 (file)
@@ -98,7 +98,7 @@ class haproxy (
       content => template('haproxy/haproxy-base.cfg.erb'),
     }
 
-    if ($::operatingsystem == 'Ubuntu') {
+    if ($::osfamily == 'Debian') {
       file { '/etc/default/haproxy':
         content => 'ENABLED=1',
         require => Package['haproxy']