rbd_client_directories: false # this will create rbd_client_log_path and rbd_client_admin_socket_path directories with proper permissions, this WON'T work if libvirt and kvm are installed\r
rbd_client_log_file: /var/log/rbd-clients/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor\r
rbd_client_log_path: /var/log/rbd-clients/\r
-rbd_client_admin_socket_path: /var/run/ceph/rbd-clients/ # must be writable by QEMU and allowed by SELinux or AppArmor\r
+rbd_client_admin_socket_path: /var/run/ceph/rbd-clients # must be writable by QEMU and allowed by SELinux or AppArmor\r
\r
## Monitor options\r
#\r
command: service ceph restart mon
when:
socket.rc == 0 and
+ ansible_distribution != 'Ubuntu' and
+ mon_group_name in group_names
+
+- name: restart ceph mons on ubuntu
+ command: restart ceph-mon-all
+ when:
+ socket.rc == 0 and
+ ansible_distribution == 'Ubuntu' and
mon_group_name in group_names
- name: restart ceph osds
command: service ceph restart osd
when:
socket.rc == 0 and
+ ansible_distribution != 'Ubuntu' and
osd_group_name in group_names
- name: restart ceph osds on ubuntu
ansible_distribution == 'Ubuntu' and
osd_group_name in group_names
+- name: restart ceph mdss on ubuntu
+ command: restart ceph-mds-all
+ when:
+ socket.rc == 0 and
+ ansible_distribution == 'Ubuntu' and
+ mds_group_name in group_names
+
- name: restart ceph mdss
command: service ceph restart mds
when:
socket.rc == 0 and
+ ansible_distribution != 'Ubuntu' and
mds_group_name in group_names
+- name: restart ceph rgws on ubuntu
+ command: restart ceph-all
+ when:
+ socketrgw.rc == 0 and
+ ansible_distribution == 'Ubuntu' and
+ rgw_group_name in group_names
+
- name: restart ceph rgws
command: /etc/init.d/radosgw restart
when:
- socket.rc == 0 and
+ socketrgw.rc == 0 and
+ ansible_distribution != 'Ubuntu' and
+ rgw_group_name in group_names
+
+- name: restart ceph rgws on red hat
+ command: /etc/init.d/ceph-radosgw restart
+ when:
+ socketrgw.rc == 0 and
+ ansible_os_family == 'RedHat' and
rgw_group_name in group_names
ignore_errors: true
register: socket
+- name: check for a rados gateway socket
+ shell: "stat {{ rbd_client_admin_socket_path }}*.asok > /dev/null 2>&1"
+ changed_when: false
+ ignore_errors: true
+ register: socketrgw
+
- name: generate cluster UUID
shell: >
uuidgen | tee fetch/ceph_cluster_uuid.conf
mode=0644
notify:
- restart ceph mons
+ - restart ceph mons on ubuntu
- restart ceph osds
- restart ceph osds on ubuntu
- restart ceph mdss
+ - restart ceph mdss on ubuntu
- restart ceph rgws
+ - restart ceph rgws on ubuntu
+ - restart ceph rgws on red hat
- name: create rbd client directory
file: >