ceph-ansible/roles
Dimitri Savineau bfa99cdd53 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>
(cherry picked from commit d8538ad4e1)
2019-03-14 14:48:03 +00:00
..
ceph-agent don't use "include" to include tasks 2018-09-27 17:53:40 +02:00
ceph-client client: change default pool size 2018-11-29 01:49:05 +00:00
ceph-common common: do not override ceph_release when ceph_repository is 'rhcs' 2019-02-21 13:03:16 +00:00
ceph-common-coreos don't use "include" to include tasks 2018-09-27 17:53:40 +02:00
ceph-config Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-defaults Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-docker-common validate: change default value for `radosgw_address` 2018-11-28 23:54:06 +01:00
ceph-facts Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-fetch-keys ceph-fetch-keys: refact 2018-10-17 11:26:11 +00:00
ceph-handler handler: show unit logs on error 2018-11-27 12:44:15 +00:00
ceph-infra setup_ntp: call handler to disable ntpd if chronyd used 2019-02-15 09:09:36 +00:00
ceph-iscsi-gw iscsi: fix permission denied error 2019-02-11 16:17:44 +00:00
ceph-mds Fix uses of default(omit) with string concatenation 2019-02-08 11:01:11 +00:00
ceph-mgr Fix uses of default(omit) with string concatenation 2019-02-08 11:01:11 +00:00
ceph-mon Set the default crush rule in ceph.conf 2019-03-14 14:48:03 +00:00
ceph-nfs The nfs_ganesha_dev_apt_repo variable was set incorrect in task 2019-01-07 08:03:19 +00:00
ceph-osd ceph-osd: Install numactl package when needed 2019-03-12 08:14:47 +00:00
ceph-rbd-mirror rbd-mirror: enable ceph-rbd-mirror.target 2018-11-09 16:48:35 +01:00
ceph-restapi don't use "include" to include tasks 2018-09-27 17:53:40 +02:00
ceph-rgw Removed not needed mountpoint and removed ubuntu section 2019-02-28 12:31:23 +00:00
ceph-validate/tasks Extends check_devices tasks to non-collocated an lvm-batch scenarios 2019-03-01 04:06:57 +00:00
ceph.ceph-common rollback previous change for ceph-common change 2016-03-02 18:44:36 +01:00
ceph.ceph-docker-common ceph-docker-common: add symlink to ceph.ceph-docker-common 2017-01-16 10:42:42 -06:00