Skip to content

Commit

Permalink
updated purge-rgw.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
markdhooper committed Jul 27, 2021
1 parent a42ad4b commit 19f0528
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Ceph Ansible 5.2.1-3
## Ceph Ansible 5.2.1-4

* added an infractructure playbook to purge rgw and rgwloadbalancers
* updated purge-rgw.yml to use apt purge to fix issue with haproxy and keepalived
48 changes: 47 additions & 1 deletion infrastructure-playbooks/purge-rgw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,50 @@
state: stopped
enabled: no
failed_when: false
with_items: "{{ rgw_instances }}"
with_items: "{{ rgw_instances }}"

- name: uninstall haproxy and keepalived
vars:
purge_extra_packages: true
extra_packages:
- keepalived
- haproxy
hosts:
- "{{ rgwloadbalancer_group_name|default('rgwloadbalancers') }}"
tasks:
- name: purge extra packages with yum
yum:
name: "{{ extra_packages }}"
state: absent
when:
- ansible_facts['pkg_mgr'] == 'yum'
- purge_extra_packages | bool

- name: purge extra packages with dnf
dnf:
name: "{{ extra_packages }}"
state: absent
when:
- ansible_facts['pkg_mgr'] == 'dnf'
- purge_extra_packages | bool

- name: purge extra packages with apt
apt:
name: "{{ extra_packages }}"
state: absent
purge: yes
when:
- ansible_facts['pkg_mgr'] == 'apt'
- purge_extra_packages | bool

- name: remove config for haproxy and keepalived
file:
path: "{{ item }}"
state: absent
with_items:
- /etc/keepalived
- /etc/haproxy
- /etc/default/haproxy
- /etc/default/keepalived


4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Ceph Ansible",
"prerelease": true,
"version": "5.2.1",
"buildVersion": "3",
"buildVersion": "4",
"author": "Mark Hooper <[email protected]>",
"url": "https://github.com/45Drives/ceph-ansible",
"category": "utils",
Expand Down Expand Up @@ -46,7 +46,7 @@
"changelog": {
"urgency": "medium",
"version": "5.2.1",
"buildVersion": "3",
"buildVersion": "4",
"ignore": [],
"date": null,
"packager": "Mark Hooper <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions packaging/el8/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ make DESTDIR=%{buildroot} install
/usr/share/ceph-ansible/*

%changelog
* Tue Jul 27 2021 Mark Hooper <[email protected]> 5.2.1-4
- updated purge-rgw.yml to use apt purge to fix issue with haproxy and keepalived
* Mon Jul 26 2021 Mark Hooper <[email protected]> 5.2.1-3
- added an infractructure playbook to purge rgw and rgwloadbalancers
* Thu Jul 22 2021 Mark Hooper <[email protected]> 5.2.1-2
Expand Down
6 changes: 6 additions & 0 deletions packaging/focal/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ceph-ansible-45d (5.2.1-4focal) focal; urgency=medium

* updated purge-rgw.yml to use apt purge to fix issue with haproxy and keepalived

-- Mark Hooper <[email protected]> Tue, 27 Jul 2021 14:38:23 -0300

ceph-ansible-45d (5.2.1-3focal) focal; urgency=medium

* added an infractructure playbook to purge rgw and rgwloadbalancers
Expand Down

0 comments on commit 19f0528

Please sign in to comment.