]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
make systemd enable work for mon instance
authorHuamin Chen <hchen@redhat.com>
Tue, 12 Jan 2016 20:12:40 +0000 (20:12 +0000)
committerHuamin Chen <hchen@redhat.com>
Tue, 12 Jan 2016 20:12:40 +0000 (20:12 +0000)
Signed-off-by: Huamin Chen <hchen@redhat.com>
roles/ceph-mon/tasks/start_monitor.yml

index f0710bd9042d0c205a6560cfdbf426ee9f7fc905..620fa276ba2ec5a6b7c92f871faf75d86fd06ddb 100644 (file)
     ansible_distribution != "Ubuntu" and
     not is_ceph_infernalis
 
+- name: enable systemd unit file for mon instance (for or after infernalis)
+  command: "ln -s /usr/lib/systemd/system/ceph-mon@.service /etc/systemd/system/multi-user.target.wants/ceph-mon@{{ ansible_hostname }}.service"
+  changed_when: false
+  when:
+    ansible_distribution != "Ubuntu" and
+    is_ceph_infernalis
+
 - name: start and add that the monitor service to the init sequence (for or after infernalis)
   service:
       name: ceph-mon@{{ ansible_hostname }}