Browse Source

Merge pull request #6054 from nak3/cleanup-lb

Automatic merge from submit-queue.

Remove remaining haproxy files with uninstallation

Although OpenShift LB(HAProxy) distributes
`/etc/systemd/system/haproxy.service.d/limits.conf` and
`/etc/systemd/system/haproxy.service`, uninstall playbook does not
remove them now.

This patch changes to remove these files.
OpenShift Merge Robot 7 years ago
parent
commit
7e6dc1daef
1 changed files with 4 additions and 0 deletions
  1. 4 0
      playbooks/adhoc/uninstall.yml

+ 4 - 0
playbooks/adhoc/uninstall.yml

@@ -525,3 +525,7 @@
     with_items:
     - /etc/ansible/facts.d/openshift.fact
     - /var/lib/haproxy/stats
+    # Here we remove only limits.conf rather than directory, as users may put their files.
+    # - /etc/systemd/system/haproxy.service.d
+    - /etc/systemd/system/haproxy.service.d/limits.conf
+    - /etc/systemd/system/haproxy.service