]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
docker: fix more than one monitor deployment
authorSébastien Han <seb@redhat.com>
Tue, 23 Aug 2016 13:35:54 +0000 (15:35 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 24 Aug 2016 07:05:14 +0000 (09:05 +0200)
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 <seb@redhat.com>
Vagrantfile
roles/ceph-mon/tasks/docker/main.yml

index 5cf98d7c1add89bdf824774e759aed853d74e9cf..72cb68d82b5fea1440a9247453579a54ad44b254 100644 (file)
@@ -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 = {
index 802449acfa0e19040cd7d35544ab681e7fc04d46..4ac1c9ea94d0bc757759ec322ff89f0dc9365bc5 100644 (file)
@@ -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