ceph-ansible/roles/ceph-facts/tasks
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
..
facts.yml Set the default crush rule in ceph.conf 2019-03-14 08:56:52 +00:00
main.yml introduce new role ceph-facts 2018-12-12 11:18:01 +01:00
set_monitor_address.yml introduce new role ceph-facts 2018-12-12 11:18:01 +01:00
set_radosgw_address.yml introduce new role ceph-facts 2018-12-12 11:18:01 +01:00