]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rbd-mirror: enable ceph-rbd-mirror.target 2047/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 13 Oct 2017 06:27:43 +0000 (08:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 13 Oct 2017 06:27:43 +0000 (08:27 +0200)
on jewel `ceph-rbd-mirror.target` isn't enabled, therefore, if the node
is rebooted, the service doesn't get started.

from ceph-rbd-mirror unit file:
```
[Install]
WantedBy=ceph-rbd-mirror.target
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml

index 0f35bbaeed75893d05198744309889f6366d34f0..0e0466c47d1973b7a6a3c43676bca85364e3d18d 100644 (file)
   when:
     - ceph_release_num[ceph_release] < ceph_release_num.luminous
 
+- name: enable ceph-rbd-mirror.target on jewel
+  systemd:
+    name: "ceph-rbd-mirror.target"
+    state: started
+    enabled: yes
+  changed_when: false
+  when:
+    - ceph_release_num[ceph_release] < ceph_release_num.luminous
+
 - name: stop and remove the generic rbd-mirror service instance
   service:
     name: "ceph-rbd-mirror@{{ ceph_rbd_mirror_local_user }}"