Merge pull request #658 from ceph/rgw-dir-perm

ceph-rgw: fix rgw enable with systemd
pull/654/merge
Leseb 2016-03-29 01:56:04 +02:00
commit 4eb728ff5f
2 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,7 @@
mode: "{{ dir_mode }}"
with_items:
- /var/lib/ceph/bootstrap-rgw
- /var/lib/ceph/radosgw
- /var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}
- "{{ rbd_client_admin_socket_path }}"

View File

@ -33,6 +33,17 @@
ansible_os_family == 'RedHat' and
not is_ceph_infernalis
- name: enable systemd unit file for rgw instance (for or after infernalis)
file:
src: /usr/lib/systemd/system/ceph-radosgw@.service
dest: /etc/systemd/system/multi-user.target.wants/ceph-radosgw@rgw.{{ ansible_hostname }}.service
state: link
changed_when: false
failed_when: false
when:
ansible_distribution != "Ubuntu" and
is_ceph_infernalis
- name: start rgw on red hat (after infernalis)
service:
name: ceph-radosgw@rgw.{{ ansible_hostname }}