fixed the problem by adding a new variable to test the connectivity to Elastic
This commit is contained in:
parent
a588a7c232
commit
8575aecc88
@ -23,12 +23,12 @@ platforms:
|
|||||||
command: /sbin/init
|
command: /sbin/init
|
||||||
ulimits:
|
ulimits:
|
||||||
- nofile:262144:262144
|
- nofile:262144:262144
|
||||||
# - name: trusty
|
#- name: trusty
|
||||||
# image: ubuntu:trusty
|
#image: ubuntu:trusty
|
||||||
# privileged: true
|
#privileged: true
|
||||||
# memory_reservation: 2048m
|
#memory_reservation: 2048m
|
||||||
# ulimits:
|
#ulimits:
|
||||||
# - nofile:262144:262144
|
#- nofile:262144:262144
|
||||||
- name: centos6
|
- name: centos6
|
||||||
image: centos:6
|
image: centos:6
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
elasticsearch_cluster_name: wazuh
|
elasticsearch_cluster_name: wazuh
|
||||||
elasticsearch_node_name: node-1
|
elasticsearch_node_name: node-1
|
||||||
elasticsearch_http_port: 9200
|
elasticsearch_http_port: 9200
|
||||||
elasticsearch_network_host: 127.0.0.1
|
elasticsearch_network_host: 0.0.0.0
|
||||||
|
elasticsearch_check_connection: 127.0.0.1
|
||||||
elasticsearch_jvm_xms: null
|
elasticsearch_jvm_xms: null
|
||||||
elastic_stack_version: 7.2.0
|
elastic_stack_version: 7.2.0
|
||||||
single_node: false
|
single_node: false
|
||||||
|
|||||||
@ -242,7 +242,7 @@
|
|||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Make sure Elasticsearch is running before proceeding
|
- name: Make sure Elasticsearch is running before proceeding
|
||||||
wait_for: host={{ elasticsearch_network_host }} port={{ elasticsearch_http_port }} delay=3 timeout=300
|
wait_for: host={{ elasticsearch_check_connection }} port={{ elasticsearch_http_port }} delay=3 timeout=400
|
||||||
tags:
|
tags:
|
||||||
- configure
|
- configure
|
||||||
- init
|
- init
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user