fix elasticsearch by creating a distributed glusterfs filesystem for elasticsearch data
update graylog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user