diff options
author | Hunter Haugen <h.haugen@gmail.com> | 2012-08-29 13:55:08 -0700 |
---|---|---|
committer | Hunter Haugen <h.haugen@gmail.com> | 2012-08-29 14:12:48 -0700 |
commit | 6bb22697689bb7a8ed76afe69a4a245760d12708 (patch) | |
tree | 8ec4f7f36aa01827bfd79481e0a404dca8cdaa35 | |
parent | dc03ae98bcb95559f7faf4bea72fa810dcdc4c8f (diff) |
The directory resource for managing the chroot should be a variable
-rw-r--r-- | manifests/init.pp | 7 |
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']], + ], } } |