summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2012-08-29 13:55:08 -0700
committerHunter Haugen <h.haugen@gmail.com>2012-08-29 14:12:48 -0700
commit6bb22697689bb7a8ed76afe69a4a245760d12708 (patch)
tree8ec4f7f36aa01827bfd79481e0a404dca8cdaa35 /manifests
parentdc03ae98bcb95559f7faf4bea72fa810dcdc4c8f (diff)
The directory resource for managing the chroot should be a variable
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp7
1 files changed, 5 insertions, 2 deletions
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']],
+ ],
}
}