From: asbishop Date: Thu, 7 Jul 2016 19:41:53 +0000 (-0400) Subject: Fix pre-infernalis RPM installation of ceph-radosgw X-Git-Tag: v1.0.6~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F938%2Fhead;p=ceph-ansible.git Fix pre-infernalis RPM installation of ceph-radosgw For pre-infernalis installation of ceph-radosgw from RPM, run 'chkconfig' to ensure systemd's ceph-radosgw.service is created. This fixes issue #843. --- diff --git a/roles/ceph-rgw/tasks/pre_requisite.yml b/roles/ceph-rgw/tasks/pre_requisite.yml index 44140dc1d..c4306ed27 100644 --- a/roles/ceph-rgw/tasks/pre_requisite.yml +++ b/roles/ceph-rgw/tasks/pre_requisite.yml @@ -41,6 +41,14 @@ 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 }}