fixed the problem by adding a new variable to test the connectivity to Elastic

This commit is contained in:
rshad 2019-07-23 19:36:09 +00:00
parent a588a7c232
commit 8575aecc88
3 changed files with 9 additions and 8 deletions

View File

@ -23,12 +23,12 @@ platforms:
command: /sbin/init
ulimits:
- nofile:262144:262144
# - name: trusty
# image: ubuntu:trusty
# privileged: true
# memory_reservation: 2048m
# ulimits:
# - nofile:262144:262144
#- name: trusty
#image: ubuntu:trusty
#privileged: true
#memory_reservation: 2048m
#ulimits:
#- nofile:262144:262144
- name: centos6
image: centos:6
privileged: true

View File

@ -2,7 +2,8 @@
elasticsearch_cluster_name: wazuh
elasticsearch_node_name: node-1
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
elastic_stack_version: 7.2.0
single_node: false

View File

@ -242,7 +242,7 @@
state: started
- 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:
- configure
- init