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.
pull/938/head
asbishop 2016-07-07 15:41:53 -04:00 committed by Alan Bishop
parent e92d9fbce0
commit 91d2c3b32d
1 changed files with 8 additions and 0 deletions

View File

@ -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 }}