diff options
author | varac <varacanero@zeromail.org> | 2017-02-23 11:42:47 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2017-03-15 19:22:50 +0100 |
commit | cce9af1fce42c29bf062cccfc46ef356d83a6328 (patch) | |
tree | b7f6a7de0f11e9381eb833a09f1cc1175dbce9ca /puppet/modules/site_config/manifests/remove | |
parent | bb4dd153bbf1174a95017d0046ea9e1320fd81a9 (diff) |
[8144] Remove Haproxy
We used haproxy because we had multiple bigcouch nodes but now
with a single couchdb node this is not needed anymore.
- Resolves: #8144
Diffstat (limited to 'puppet/modules/site_config/manifests/remove')
-rw-r--r-- | puppet/modules/site_config/manifests/remove/webapp.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/remove/webapp.pp b/puppet/modules/site_config/manifests/remove/webapp.pp index 58f59815..963eb705 100644 --- a/puppet/modules/site_config/manifests/remove/webapp.pp +++ b/puppet/modules/site_config/manifests/remove/webapp.pp @@ -4,4 +4,16 @@ class site_config::remove::webapp { '/etc/apache/sites-enabled/leap_webapp.conf': notify => Service['apache']; } + + # Ensure haproxy is removed + package { 'haproxy': + ensure => purged, + } + augeas { 'haproxy': + incl => '/etc/check_mk/mrpe.cfg', + lens => 'Spacevars.lns', + changes => [ 'rm /files/etc/check_mk/mrpe.cfg/Haproxy' ], + require => File['/etc/check_mk/mrpe.cfg']; + } + } |