Skip to content
Snippets Groups Projects
Commit 7ef98227 authored by Simon Michnowicz's avatar Simon Michnowicz Committed by Chris Hines
Browse files

changed a role to run on "+ delegate_to: "{{ gluster_servers[0] }}"" so it is...

changed a role to run on "+  delegate_to: "{{ gluster_servers[0] }}"" so it is consistent within playbook
added a ping value and restarted the daemon. This was to try to fix startup bugs we see in Monarch.
parent a288ef90
No related branches found
No related tags found
1 merge request!135Gluster
......@@ -7,12 +7,23 @@
- name: show server list
debug: var=server_list
- name: "Attemtp to fix transaction problem. Modfy ping-timeout parameter in /etc/glusterfs/glusterd.vol"
replace: dest="/etc/glusterfs/glusterd.vol" regexp=" option ping-timeout 0" replace=" option ping-timeout 5"
become: true
become_user: root
- name: restart gluster service
systemd: name=glusterd state=restarted daemon_reload=yes
become: true
become_user: root
- name: probe peers
shell: "gluster peer probe {{ item }}"
run_once: true
#run_once: true
with_items: "{{ (gluster_servers|difference([inventory_hostname])) }}"
become: true
become_user: root
delegate_to: "{{ gluster_servers[0] }}"
- name: create volume
gluster_volume:
......@@ -23,6 +34,7 @@
host: "{{ inventory_hostname }}"
state: present
sudo: true
ignore_errors: true
# run_once: true
delegate_to: "{{ gluster_servers[0] }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment