Fix linting in Ansible playbooks related with Elastic

This commit is contained in:
Jose M 2019-11-25 16:16:50 +01:00
parent 2efe6e6268
commit 61d05a0cdd
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
--- ---
- hosts: <YOUR_ELASTICSEARCH_IP> - hosts: <YOUR_ELASTICSEARCH_IP>
roles: roles:
- role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch - role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch
elasticsearch_network_host: '<YOUR_ELASTICSEARCH_IP>' elasticsearch_network_host: '<YOUR_ELASTICSEARCH_IP>'

View File

@ -6,7 +6,7 @@
elasticsearch_network_host: <node-1 IP> elasticsearch_network_host: <node-1 IP>
node_name: node-1 node_name: node-1
elasticsearch_bootstrap_node: true elasticsearch_bootstrap_node: true
elasticsearch_cluster_nodes: elasticsearch_cluster_nodes:
- <node-1 IP> - <node-1 IP>
- <node-2 IP> - <node-2 IP>
- <node-3 IP> - <node-3 IP>
@ -22,7 +22,7 @@
vars: vars:
instances: instances:
node1: node1:
name: node-1 # Important: must be equal to elasticsearch_node_name. name: node-1 # Important: must be equal to elasticsearch_node_name.
ip: <node-1 IP> # When unzipping, the node will search for its node name folder to get the cert. ip: <node-1 IP> # When unzipping, the node will search for its node name folder to get the cert.
node2: node2:
name: node-2 name: node-2
@ -43,10 +43,10 @@
- <node-1 IP> - <node-1 IP>
- <node-2 IP> - <node-2 IP>
- <node-3 IP> - <node-3 IP>
- hosts: <node-3 IP> - hosts: <node-3 IP>
roles: roles:
- role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch - role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch
elasticsearch_network_host: <node-3 IP> elasticsearch_network_host: <node-3 IP>
elasticsearch_node_name: node-3 elasticsearch_node_name: node-3
single_node: false single_node: false

View File

@ -5,4 +5,4 @@
- role: ../roles/wazuh/ansible-filebeat - role: ../roles/wazuh/ansible-filebeat
filebeat_output_elasticsearch_hosts: localhost:9200 filebeat_output_elasticsearch_hosts: localhost:9200
- {role: ../roles/elastic-stack/ansible-elasticsearch, elasticsearch_network_host: '0.0.0.0', single_node: true} - {role: ../roles/elastic-stack/ansible-elasticsearch, elasticsearch_network_host: '0.0.0.0', single_node: true}
- { role: ../roles/elastic-stack/ansible-kibana, elasticsearch_network_host: 'localhost', elasticsearch_reachable_host: 'localhost' }s - { role: ../roles/elastic-stack/ansible-kibana, elasticsearch_network_host: 'localhost', elasticsearch_reachable_host: 'localhost' }