ceph-ansible/roles
Dimitri Savineau d8538ad4e1 Set the default crush rule in ceph.conf
Currently the default crush rule value is added to the ceph config
on the mon nodes as an extra configuration applied after the template
generation via the ansible ini module.

This implies two behaviors:

1/ On each ceph-ansible run, the ceph.conf will be regenerated via
ceph-config+template and then ceph-mon+ini_file. This leads to a
non necessary daemons restart.

2/ When other ceph daemons are collocated on the monitor nodes
(like mgr or rgw), the default crush rule value will be erased by
the ceph.conf template (mon -> mgr -> rgw).

This patch adds the osd_pool_default_crush_rule config to the ceph
template and only for the monitor nodes (like crush_rules.yml).
The default crush rule id is read (if exist) from the current ceph
configuration.
The default configuration is -1 (ceph default).

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

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
2019-03-14 08:56:52 +00:00
..
ceph-agent retry on packages and repositories failures 2018-12-19 14:48:27 +00:00
ceph-client Force osd pool min_size value to integer 2019-03-05 19:48:09 +00:00
ceph-common common: Use rhsm_repository module for RHCS 2019-03-07 19:15:42 +00:00
ceph-config Set the default crush rule in ceph.conf 2019-03-14 08:56:52 +00:00
ceph-container-common container: fix tmpfiles.d ceph files 2019-02-19 16:40:08 +01:00
ceph-defaults Set the default crush rule in ceph.conf 2019-03-14 08:56:52 +00:00
ceph-facts Set the default crush rule in ceph.conf 2019-03-14 08:56:52 +00:00
ceph-fetch-keys meta: set the right minimum ansible version required for galaxy 2018-12-11 09:59:25 +01:00
ceph-handler Make python print statements python3 compatible 2019-02-01 15:23:27 +00:00
ceph-infra ceph-infra: Remove restart firewalld handler 2019-02-22 18:15:47 +00:00
ceph-iscsi-gw systemd/service: Set docker.service conditionally 2019-03-07 20:56:11 +00:00
ceph-mds systemd/service: Set docker.service conditionally 2019-03-07 20:56:11 +00:00
ceph-mgr systemd/service: Set docker.service conditionally 2019-03-07 20:56:11 +00:00
ceph-mon Set the default crush rule in ceph.conf 2019-03-14 08:56:52 +00:00
ceph-nfs systemd/service: Set docker.service conditionally 2019-03-07 20:56:11 +00:00
ceph-osd ceph-osd: Install numactl package when needed 2019-03-12 07:43:06 +00:00
ceph-rbd-mirror systemd/service: Set docker.service conditionally 2019-03-07 20:56:11 +00:00
ceph-rgw systemd/service: Set docker.service conditionally 2019-03-07 20:56:11 +00:00
ceph-validate Extends check_devices tasks to non-collocated an lvm-batch scenarios 2019-03-01 02:13:51 +00:00