mirror of https://github.com/ceph/ceph-ansible.git
parent
5c71033374
commit
89355e6b77
|
@ -80,7 +80,7 @@ rbd_concurrent_management_ops: 20
|
||||||
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
|
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
|
||||||
rbd_client_log_file: /var/log/rbd-clients/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor
|
rbd_client_log_file: /var/log/rbd-clients/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor
|
||||||
rbd_client_log_path: /var/log/rbd-clients/
|
rbd_client_log_path: /var/log/rbd-clients/
|
||||||
rbd_client_admin_socket_path: /var/run/ceph/rbd-clients/ # must be writable by QEMU and allowed by SELinux or AppArmor
|
rbd_client_admin_socket_path: /var/run/ceph/rbd-clients # must be writable by QEMU and allowed by SELinux or AppArmor
|
||||||
|
|
||||||
## Monitor options
|
## Monitor options
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,12 +6,21 @@
|
||||||
command: service ceph restart mon
|
command: service ceph restart mon
|
||||||
when:
|
when:
|
||||||
socket.rc == 0 and
|
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
|
mon_group_name in group_names
|
||||||
|
|
||||||
- name: restart ceph osds
|
- name: restart ceph osds
|
||||||
command: service ceph restart osd
|
command: service ceph restart osd
|
||||||
when:
|
when:
|
||||||
socket.rc == 0 and
|
socket.rc == 0 and
|
||||||
|
ansible_distribution != 'Ubuntu' and
|
||||||
osd_group_name in group_names
|
osd_group_name in group_names
|
||||||
|
|
||||||
- name: restart ceph osds on ubuntu
|
- name: restart ceph osds on ubuntu
|
||||||
|
@ -21,14 +30,37 @@
|
||||||
ansible_distribution == 'Ubuntu' and
|
ansible_distribution == 'Ubuntu' and
|
||||||
osd_group_name in group_names
|
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
|
- name: restart ceph mdss
|
||||||
command: service ceph restart mds
|
command: service ceph restart mds
|
||||||
when:
|
when:
|
||||||
socket.rc == 0 and
|
socket.rc == 0 and
|
||||||
|
ansible_distribution != 'Ubuntu' and
|
||||||
mds_group_name in group_names
|
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
|
- name: restart ceph rgws
|
||||||
command: /etc/init.d/radosgw restart
|
command: /etc/init.d/radosgw restart
|
||||||
when:
|
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
|
rgw_group_name in group_names
|
||||||
|
|
|
@ -18,6 +18,12 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
register: socket
|
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
|
- name: generate cluster UUID
|
||||||
shell: >
|
shell: >
|
||||||
uuidgen | tee fetch/ceph_cluster_uuid.conf
|
uuidgen | tee fetch/ceph_cluster_uuid.conf
|
||||||
|
@ -46,10 +52,14 @@
|
||||||
mode=0644
|
mode=0644
|
||||||
notify:
|
notify:
|
||||||
- restart ceph mons
|
- restart ceph mons
|
||||||
|
- restart ceph mons on ubuntu
|
||||||
- restart ceph osds
|
- restart ceph osds
|
||||||
- restart ceph osds on ubuntu
|
- restart ceph osds on ubuntu
|
||||||
- restart ceph mdss
|
- restart ceph mdss
|
||||||
|
- restart ceph mdss on ubuntu
|
||||||
- restart ceph rgws
|
- restart ceph rgws
|
||||||
|
- restart ceph rgws on ubuntu
|
||||||
|
- restart ceph rgws on red hat
|
||||||
|
|
||||||
- name: create rbd client directory
|
- name: create rbd client directory
|
||||||
file: >
|
file: >
|
||||||
|
|
Loading…
Reference in New Issue