ceph-ansible/infrastructure-playbooks
Sébastien Han 2cea33f7fc rolling_update: default ceph json output to empty dict
So we can avoid the following failure:

The conditional check 'hostvars[mon_host]['ansible_hostname'] in (ceph_health_raw.stdout | from_json)["quorum_names"] or hostvars[mon_host]['ansible_fqdn'] in (ceph_health_raw.stdout | from_json)["quorum_names"]
' failed. The error was: No JSON object could be decoded

We just need to set a default, the next iteration will have a more
complete json since the command won't fail.

Signed-off-by: Sébastien Han <seb@redhat.com>
2018-11-29 01:49:05 +00:00
..
untested-by-ci don't use "static" field while including tasks 2018-10-04 07:44:28 +00:00
vars infrastructure playbooks: ensure nvme_device is defined in lv-create.yml 2018-10-29 08:41:42 +00:00
README.md rolling_update: fix wrong indent 2016-10-26 12:51:08 -05:00
add-osd.yml add-osds: followup on 3632b26 2018-10-17 17:07:25 +02: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
gather-ceph-logs.yml infra: add a gather-ceph-logs.yml playbook 2018-10-17 13:52:19 +00:00
lv-create.yml infrastructure playbooks: ensure nvme_device is defined in lv-create.yml 2018-10-29 08:41:42 +00:00
lv-teardown.yml lv-teardown: fail silently if lv_vars.yml is not found 2018-08-16 16:38:23 +02:00
purge-cluster.yml remove configuration files for ceph packages on ubuntu clusters 2018-11-09 16:50:25 +01:00
purge-docker-cluster.yml purge: actually remove of /var/lib/ceph/* 2018-09-27 17:45:21 +02:00
purge-iscsi-gateways.yml igw: stop tcmu-runner on iscsi purge 2018-11-09 16:50:04 +01:00
rgw-standalone.yml infrastructure-playbooks: update with ceph-defaults roles 2017-08-02 17:12:20 +02:00
rolling_update.yml rolling_update: default ceph json output to empty dict 2018-11-29 01:49:05 +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: follow up on 36fb3cde 2018-09-18 07:27:41 +00:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml switch: do not look for devices anymore 2018-11-29 00:31:47 +01:00
take-over-existing-cluster.yml take-over-existing-cluster: do not call var_files 2018-08-20 14:47:04 +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>.