ceph-ansible/roles
Sébastien Han 1bd891232c config: do not duplicate sections when doing collocation
Prior to this commit, when collocating a RGW and NFS on the same box the
ceph.conf layout was the following:

[client.rgw.rgw0]
host = mds0
host = rgw0
rgw frontends = civetweb port=192.168.15.50:8080
num_threads=100[client.rgw.mds0]
rgw frontends = civetweb port=192.168.15.70:8080 num_threads=100
rgw frontends = civetweb port=192.168.15.50:8080 num_threads=100
keyring = /var/lib/ceph/radosgw/test-rgw.mds0/keyring
keyring = /var/lib/ceph/radosgw/test-rgw.rgw0/keyring
rgw data = /var/lib/ceph/radosgw/test-rgw.rgw0
log file = /var/log/ceph/test-rgw-mds0.log
log file = /var/log/ceph/test-rgw-rgw0.log

[mds.mds0]
host = mds0

[global]
rgw override bucket index max shards = 16
fsid = 70e1d368-57b3-4978-b746-cbffce6e56b5
rgw bucket default quota max objects = 1638400
osd_pool_default_size = 1
public network = 192.168.15.0/24
mon host = 192.168.15.10,192.168.15.11,192.168.15.12
osd_pool_default_pg_num = 8
cluster network = 192.168.16.0/24

[mds.rgw0]
host = rgw0

[client.rgw.mds0]
host = mds0
rgw data = /var/lib/ceph/radosgw/test-rgw.mds0
keyring = /var/lib/ceph/radosgw/test-rgw.mds0/keyring
rgw frontends = civetweb port=192.168.15.70:8080 num_threads=100
log file = /var/log/ceph/test-rgw-mds0.log

Basically appending all the sections. This commits solves that.
Now the sections appear like this:

-bash-4.2# cat /etc/ceph/test.conf
[client.rgw.rgw0]
log file = /var/log/ceph/test-rgw-rgw0.log
host = rgw0
keyring = /var/lib/ceph/radosgw/test-rgw.rgw0/keyring
rgw frontends = civetweb port=192.168.15.50:8080 num_threads=100

[client.rgw.mds0]
log file = /var/log/ceph/test-rgw-mds0.log
host = mds0
keyring = /var/lib/ceph/radosgw/test-rgw.mds0/keyring
rgw frontends = civetweb port=192.168.15.70:8080 num_threads=100

[global]
cluster network = 192.168.16.0/24
mon host = 192.168.15.10,192.168.15.11,192.168.15.12
osd_pool_default_size = 1
public network = 192.168.15.0/24
rgw bucket default quota max objects = 1638400
osd_pool_default_pg_num = 8
rgw override bucket index max shards = 16
fsid = 77a21980-3033-4174-9264-1abc7185bcb3

[mds.rgw0]
host = rgw0

[mds.mds0]
host = mds0

Signed-off-by: Sébastien Han <seb@redhat.com>
2017-10-09 17:25:44 +02:00
..
ceph-agent name includes and set_fact for clarity 2017-09-18 23:39:46 +02:00
ceph-client Refact code for set_osd_pool_default_* 2017-10-04 15:40:10 +02:00
ceph-common common: fix debian rhcs installation 2017-10-07 03:39:09 +02:00
ceph-common-coreos Adding Proxy support 2016-12-15 15:28:59 +01:00
ceph-config config: do not duplicate sections when doing collocation 2017-10-09 17:25:44 +02:00
ceph-defaults Merge pull request #2009 from ceph/fix-clean-pg 2017-10-07 03:39:26 +02:00
ceph-docker-common docker: fix keyrings copied on all nodes 2017-10-05 09:23:22 +02:00
ceph-fetch-keys name includes and set_fact for clarity 2017-09-18 23:39:46 +02:00
ceph-iscsi-gw iscsi: fix wrong group name for iscsi 2017-10-05 17:25:32 +02:00
ceph-mds set docker_exec_cmd fact early in each role 2017-10-04 11:31:09 +02:00
ceph-mgr set docker_exec_cmd fact early in each role 2017-10-04 11:31:09 +02:00
ceph-mon Merge pull request #1995 from ceph/remove-rbd-check 2017-10-05 15:31:48 +02:00
ceph-nfs Merge pull request #1983 from jprovaznik/suffix 2017-10-06 22:40:57 +02:00
ceph-osd purge-docker: rework device detection 2017-10-07 03:39:04 +02:00
ceph-rbd-mirror rbd: fix bug when trying to fetch key 2017-10-06 11:34:29 +02:00
ceph-restapi set docker_exec_cmd fact early in each role 2017-10-04 11:31:09 +02:00
ceph-rgw set docker_exec_cmd fact early in each role 2017-10-04 11:31:09 +02: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