From a4dbe49f7fec99957a157a1526f0e6b0ade8290b Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Tue, 23 Aug 2016 15:35:54 +0200 Subject: [PATCH] docker: fix more than one monitor deployment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is no need to run the actions from roles/ceph-mon/tasks/docker/create_configs.yml on the first monitor only since the monitor deployment happens **serially**. Moreover with Vagrant it's useful to allow the auto creation of the cluster fsid, so enabling the option. If this is not desired you can still set `fsid: 9c9c0448-0551-401d-b55b-e5b3a42bae42` for example. Signed-off-by: Sébastien Han --- Vagrantfile | 3 ++- roles/ceph-mon/tasks/docker/main.yml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 5cf98d7c1..72cb68d82 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -81,7 +81,8 @@ ansible_provision = proc do |ansible| ceph_osd_docker_devices: settings['disks'], # Note that OSVM is defaulted to false above ceph_docker_on_openstack: OSVM, - ceph_rgw_civetweb_port: 8080 + ceph_rgw_civetweb_port: 8080, + generate_fsid: 'true' } else ansible.extra_vars = { diff --git a/roles/ceph-mon/tasks/docker/main.yml b/roles/ceph-mon/tasks/docker/main.yml index 802449acf..4ac1c9ea9 100644 --- a/roles/ceph-mon/tasks/docker/main.yml +++ b/roles/ceph-mon/tasks/docker/main.yml @@ -48,7 +48,6 @@ # let the first mon create configs and keyrings - include: create_configs.yml when: - - inventory_hostname == groups.mons[0] - not mon_containerized_default_ceph_conf_with_kv - include: fetch_configs.yml -- 2.39.5