]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ci: deploy rbd mirror 1878/head
authorSébastien Han <seb@redhat.com>
Fri, 8 Sep 2017 07:51:03 +0000 (09:51 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 8 Sep 2017 23:17:10 +0000 (01:17 +0200)
Deploy rbd mirorr in cluster scenario

Signed-off-by: Sébastien Han <seb@redhat.com>
Vagrantfile
roles/ceph-rbd-mirror/tasks/docker/start_docker_rbd_mirror.yml
roles/ceph-rbd-mirror/tasks/pre_requisite.yml
site-docker.yml.sample
tests/functional/centos/7/cluster/hosts
tests/functional/centos/7/cluster/vagrant_variables.yml
tests/functional/centos/7/docker/hosts

index 0b09cfda0a8a2bea59d6515fd9a4120123e8e7e1..5b0962ed9590844d6c09c6777171ea0e28d6019d 100644 (file)
@@ -363,7 +363,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   end
 
   (0..NRBD_MIRRORS - 1).each do |i|
-    config.vm.define "#{LABEL_PREFIX}rbd_mirror#{i}" do |rbd_mirror|
+    config.vm.define "#{LABEL_PREFIX}rbd-mirror#{i}" do |rbd_mirror|
       rbd_mirror.vm.hostname = "#{LABEL_PREFIX}rbd-mirror#{i}"
       if ASSIGN_STATIC_IP
         rbd_mirror.vm.network :private_network,
index afaffafe228f0becc443ce88e8948be52c0c74df..c86c84c180d37ffb608dbbdd3d53114a5a354928 100644 (file)
@@ -10,7 +10,7 @@
     mode: "0644"
 
 - name: enable systemd unit file for rbd mirror instance
-  command: systemctl enable ceph-rbd-mirror@{{ ansible_hostname }}.service
+  command: systemctl enable ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}.service
   failed_when: false
   changed_when: false
 
@@ -21,7 +21,7 @@
 
 - name: systemd start rbd mirror container
   service:
-    name: ceph-rbd-mirror@{{ ansible_hostname }}
+    name: ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}
     state: started
     enabled: yes
   changed_when: false
index 0d960c557d08689b809311ebc61d7f040311d140..5b0ad3d8a220cb859de8948b2cefd6d7f8916cd6 100644 (file)
@@ -33,7 +33,7 @@
 - name: create rbd-mirror keyring
   command: ceph --cluster {{ cluster }} --name client.bootstrap-rbd --keyring /var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring auth get-or-create client.rbd-mirror.{{ ansible_hostname }} mon 'profile rbd' osd 'profile rbd' -o /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}.keyring
   args:
-    creates: /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}/keyring
+    creates: /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}.keyring
   changed_when: false
   when:
     - cephx
index 29272223c9be65b5984700a925e995dbbdacd5fb..2c10d937c5f8ba2a088757712c347d372dd51a4b 100644 (file)
@@ -69,7 +69,7 @@
     - ceph-config
     - ceph-nfs
 
-- hosts: rbd_mirrors
+- hosts: rbdmirrors
   become: True
   gather_facts: false
   roles:
index 8ef58a40362038bcd907aa3589e2328c17f1a487..71408cdef3c64994a47b894649bcb22bfbd476fd 100644 (file)
@@ -20,3 +20,6 @@ ceph-mgr0
 
 [nfss]
 ceph-nfs0
+
+[rbdmirrors]
+ceph-rbd-mirror0
index a711032a92b399f6ea9c1237e46ee0701e0a8cb7..5fc482e9802739a265117a81903a07fcd9b76618 100644 (file)
@@ -9,7 +9,7 @@ osd_vms: 1
 mds_vms: 1
 rgw_vms: 1
 nfs_vms: 1
-rbd_mirror_vms: 0
+rbd_mirror_vms: 1
 client_vms: 1
 iscsi_gw_vms: 0
 mgr_vms: 1
index 25807504d51b2cc836adbbf3beb7f7254aaa5716..fb646969cf19726f1060b481f39288e4a4533bc2 100644 (file)
@@ -17,3 +17,6 @@ mgr0
 
 [clients]
 client0 ceph_origin="repository" ceph_repository="community" containerized_deployment="False"
+
+[rbdmirrors]
+rbd-mirror0