ceph-ansible/infrastructure-playbooks
Dimitri Savineau acddf4fb67 rolling_update: use ceph health instead of ceph -s
The ceph status command returns a lot of information stored in variables
and/or facts which could consume resources for nothing.
When checking the cluster health, we're using the health structure in the
ceph status output.
To optimize this, we could use the ceph health command which contains
the same needed information.

$ ceph status -f json | wc -c
2001
$ ceph health -f json | wc -c
46

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
2020-11-03 09:05:33 +01:00
..
untested-by-ci ansible: use 'bool' filter on boolean conditionals 2019-06-06 10:21:17 +02:00
vars osd: remove variable osd_scenario 2019-04-11 11:57:02 -04:00
README.md doc: update infra playbooks statements 2020-02-25 15:27:52 +01:00
add-mon.yml facts: explicitly disable facter and ohai 2020-07-02 17:46:12 +02:00
ceph-keys.yml ceph_key: set state as optional 2020-09-14 14:12:21 -04:00
cephadm-adopt.yml monitor: use quorum_status instead of ceph status 2020-11-03 09:05:33 +01:00
cephadm.yml monitor: use quorum_status instead of ceph status 2020-11-03 09:05:33 +01:00
docker-to-podman.yml defaults: change default grafana-server name 2020-09-29 07:42:26 +02:00
filestore-to-bluestore.yml fs2bs: support `osd_auto_discovery` scenario 2020-09-29 09:29:01 -04:00
gather-ceph-logs.yml play: remove backward compatibility group name 2020-07-08 09:21:19 -04:00
lv-create.yml lv-create: fix a typo 2019-09-26 11:35:24 +02:00
lv-teardown.yml improve coding style 2019-04-23 15:37:07 +02:00
purge-cluster.yml common: drop `fetch_directory` feature 2020-10-21 13:22:16 +02:00
purge-container-cluster.yml common: drop `fetch_directory` feature 2020-10-21 13:22:16 +02:00
purge-iscsi-gateways.yml purge-iscsi-gateways: don't run all ceph-facts 2020-01-10 15:46:15 +01:00
rgw-add-users-buckets.yml Example ceph_add_users_buckets playbook 2018-12-20 14:23:25 +01:00
rolling_update.yml rolling_update: use ceph health instead of ceph -s 2020-11-03 09:05:33 +01:00
shrink-mds.yml shrink-mds: use mds_to_kill_hostname instead 2020-08-18 14:56:57 -04:00
shrink-mgr.yml shrink-mgr: fix systemd condition 2020-03-03 10:32:15 +01:00
shrink-mon.yml monitor: use quorum_status instead of ceph status 2020-11-03 09:05:33 +01:00
shrink-osd.yml add missing boolean filter 2020-09-28 20:45:01 +02:00
shrink-rbdmirror.yml rgw/rbdmirror: use service dump instead of ceph -s 2020-11-03 09:05:33 +01:00
shrink-rgw.yml rgw/rbdmirror: use service dump instead of ceph -s 2020-11-03 09:05:33 +01:00
storage-inventory.yml add missing boolean filter 2020-09-28 20:45:01 +02:00
switch-from-non-containerized-to-containerized-ceph-daemons.yml monitor: use quorum_status instead of ceph status 2020-11-03 09:05:33 +01:00
take-over-existing-cluster.yml remove ceph-agent role and references 2019-06-03 13:35:50 +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, run ansible-playbook infrastructure-playbooks/<playbook>.