From 6bb22697689bb7a8ed76afe69a4a245760d12708 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 29 Aug 2012 13:55:08 -0700 Subject: The directory resource for managing the chroot should be a variable --- manifests/init.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 93c7e17..2feacf2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -105,7 +105,7 @@ class haproxy ( } } - file { '/var/lib/haproxy': + file { $haproxy_global_options['chroot']: ensure => directory, before => Service['haproxy'], } @@ -124,6 +124,9 @@ class haproxy ( name => 'haproxy', hasrestart => true, hasstatus => true, - require => Concat['/etc/haproxy/haproxy.cfg'], + require => [ + Concat['/etc/haproxy/haproxy.cfg'], + File[$haproxy_global_options['chroot']], + ], } } -- cgit v1.2.3