]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix pre-infernalis RPM installation of ceph-radosgw 938/head
authorasbishop <alan_bishop@dell.com>
Thu, 7 Jul 2016 19:41:53 +0000 (15:41 -0400)
committerAlan Bishop <alan_bishop@dell.com>
Wed, 17 Aug 2016 14:45:08 +0000 (10:45 -0400)
For pre-infernalis installation of ceph-radosgw from RPM, run 'chkconfig'
to ensure systemd's ceph-radosgw.service is created.

This fixes issue #843.

roles/ceph-rgw/tasks/pre_requisite.yml

index 44140dc1db6872253887c64febb6b62bed5a6e60..c4306ed2700efe0bea24c1d2f5cfba83c2e632f7 100644 (file)
     group: "{{ key_group }}"
   when: cephx
 
+- name: ensure ceph-radosgw systemd unit file is present
+  command: chkconfig --add ceph-radosgw
+  args:
+    creates: /var/run/systemd/generator.late/ceph-radosgw.service
+  when:
+    - ansible_os_family == "RedHat"
+    - is_before_infernalis
+
 - name: activate rados gateway with upstart
   file:
     path: /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}/{{ item }}