fix elasticsearch by creating a distributed glusterfs filesystem for elasticsearch data

update graylog
This commit is contained in:
2017-06-16 22:47:03 -04:00
parent 7e22e561cd
commit 76c0d85fb9
8 changed files with 41 additions and 125 deletions

View File

@@ -34,13 +34,23 @@
with_dict: "{{volumes}}"
run_once: true
# manage volumes
- name: create tmp gluster volumes
#- name: create tmp gluster volumes
# gluster_volume:
# state: present
# name: "tmp"
# brick: '/data/glusterfs/tmp/brick1/brick'
# rebalance: no
# replicas: 1
# cluster: "{{cluster}}"
# run_once: true
- name: create distributed gluster volumes
gluster_volume:
state: present
name: "tmp"
brick: '/data/glusterfs/tmp/brick1/brick'
name: "{{ item.key }}"
brick: '{{ item.value | join(",")}}'
rebalance: no
replicas: 2
replicas: false
cluster: "{{cluster}}"
with_dict: "{{distributed_volumes}}"
run_once: true