ceph-ansible/infrastructure-playbooks
Guillaume Abrioux 79a5725cf6 purge: actually remove of /var/lib/ceph/*
38dc20e74b introduced a bug in the purge
playbooks because using `*` in `command` module doesn't work.

`/var/lib/ceph/*` files are not purged it means there is a leftover.

When trying to redeploy a cluster, it failed because monitor daemon was
detecting existing keyring, therefore, it assumed a cluster already
existed.

Typical error (from container output):

```
Sep 26 13:18:16 mon0 docker[31316]: 2018-09-26 13:18:16  /entrypoint.sh: Existing mon, trying to rejoin cluster...
Sep 26 13:18:16 mon0 docker[31316]: 2018-09-26 13:18:16.9323937f15b0d74700 -1 auth: unable to find a keyring on /etc/ceph/test.client.admin.keyring,/etc/ceph/test.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,:(2) No such file or directory
Sep 26 13:18:23 mon0 docker[31316]: 2018-09-26 13:18:23  /entrypoint.sh:
SUCCESS
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1633563

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 144c92b21f)
2018-09-27 21:42:43 +02:00
..
untested-by-ci syntax: change local_action syntax 2018-01-31 10:45:34 +01:00
vars lv-create: add an example logfile_path config option in lv_vars.yml 2018-08-16 17:01:41 +02:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
ansible.cfg Cleanup plugins directories and references 2018-03-14 11:15:39 +01:00
ceph-keys.yml mon/client: remove acl code 2018-04-23 18:34:58 +02:00
lv-create.yml lv-create: use copy instead of the template module 2018-08-16 17:01:41 +02:00
lv-teardown.yml lv-teardown: fail silently if lv_vars.yml is not found 2018-08-16 17:01:41 +02:00
osd-configure.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
purge-cluster.yml purge: actually remove of /var/lib/ceph/* 2018-09-27 21:42:43 +02:00
purge-docker-cluster.yml purge: actually remove of /var/lib/ceph/* 2018-09-27 21:42:43 +02:00
purge-iscsi-gateways.yml iscsi group name preserve backward compatibility 2018-08-21 00:04:37 +02:00
rgw-standalone.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
rolling_update.yml rolling_update: ensure pgs_by_state has at least 1 entry 2018-09-26 10:58:51 +00:00
shrink-mon.yml shrink-mon: fix typo in the code doc 2017-10-27 11:59:22 +02:00
shrink-osd.yml shrink-osd: fix purge osd on containerized deployment 2018-09-14 18:22:12 +00:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch: disable ceph-disk units 2018-05-22 17:08:01 -07:00
take-over-existing-cluster.yml take-over-existing-cluster: do not call var_files 2018-08-20 14:47:32 +02:00

README.md

Infrastructure playbooks

This directory contains a variety of playbooks that can be used independently of the Ceph roles we have. They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks.

To use them, you must move them to ceph-ansible's root directory, then run using ansible-playbook <playbook>.