Skip to content

Commit

Permalink
Enable RGWs on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
9seconds committed Nov 23, 2016
1 parent c6fe957 commit 2d55697
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,20 @@
tasks:
- name: Enable monitors on startup
command: systemctl enable ceph-mon.service

# By default, ceph-ansible do not enable rgws so after restart
# processes won't up.
- hosts: rgws
become: true
tasks:
- name: Create dependencies directory for ceph-target
file: path=/etc/systemd/system/ceph.target.wants state=directory

- name: Create symlink for RGW service
file:
src: /lib/systemd/system/ceph-radosgw@.service
dest: "/etc/systemd/system/ceph.target.wants/ceph-radosgw@rgw.{{ ansible_hostname }}.service"
state: link

- name: Enable ceph.target
command: systemctl enable ceph.target

0 comments on commit 2d55697

Please sign in to comment.