From 91d2c3b32dc79fdd1e29feb29ce6abd12b90cd79 Mon Sep 17 00:00:00 2001 From: asbishop Date: Thu, 7 Jul 2016 15:41:53 -0400 Subject: [PATCH] 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. --- roles/ceph-rgw/tasks/pre_requisite.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }} -- 2.39.5