rbd-mirror: enable ceph-rbd-mirror.target

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>
pull/2047/head
Guillaume Abrioux 2017-10-13 08:27:43 +02:00
parent 73f6aeb15f
commit 59ca1065e9
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,15 @@
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 }}"