changing default variables values

This commit is contained in:
Rshad Zhran 2019-08-16 14:43:29 +02:00
parent cb5149c629
commit cae6e96be6
9 changed files with 20 additions and 24 deletions

View File

@ -12,9 +12,9 @@ platforms:
# - name: trusty # - name: trusty
# image: ubuntu:trusty # image: ubuntu:trusty
# - name: bionic # - name: bionic
# image: solita/ubuntu-systemd:bionic image: solita/ubuntu-systemd:bionic
# command: /sbin/init command: /sbin/init
# privileged: true privileged: true
# - name: xenial # - name: xenial
# image: solita/ubuntu-systemd:xenial # image: solita/ubuntu-systemd:xenial
# privileged: true # privileged: true
@ -25,9 +25,9 @@ platforms:
# command: /sbin/init # command: /sbin/init
# volumes: # volumes:
# - /sys/fs/cgroup:/sys/fs/cgroup:ro # - /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: centos7 #- name: centos7
image: milcom/centos7-systemd # image: milcom/centos7-systemd
privileged: true # privileged: true
provisioner: provisioner:
name: ansible name: ansible
playbooks: playbooks:

View File

@ -55,7 +55,6 @@ provisioner:
group_vars: group_vars:
all: all:
elasticsearch_jvm_xms: 256 elasticsearch_jvm_xms: 256
kibana_plugin_install_ignore_error: true
verifier: verifier:
name: testinfra name: testinfra
lint: lint:

View File

@ -1,4 +1,5 @@
--- ---
- hosts: <your elasticsearch host> - hosts: <YOUR_ELASTICSEARCH_IP>
roles: roles:
- {role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch, elasticsearch_network_host: 'your elasticsearch IP'} - role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-elasticsearch
elasticsearch_network_host: '<YOUR_ELASTICSEARCH_IP>'

View File

@ -1,10 +1,6 @@
--- ---
- hosts: 172.16.0.162 - hosts: <KIBANA_HOST>
roles: roles:
- role: ../roles/elastic-stack/ansible-kibana - role: ../roles/elastic-stack/ansible-kibana
kibana_xpack_security: true elasticsearch_network_host: <YOUR_ELASTICSEARCH_IP>
kibana_user: elastic
kibana_password: elastic_pass
kibana_node_name: node-2
elasticsearch_network_host: 172.16.0.161
node_certs_generator: false

View File

@ -1,10 +1,8 @@
--- ---
- hosts: 172.16.0.161 - hosts: <WAZUH_MANAGER_HOST>
roles: roles:
- role: ../roles/wazuh/ansible-wazuh-manager - role: ../roles/wazuh/ansible-wazuh-manager
- role: ../roles/wazuh/ansible-filebeat - role: ../roles/wazuh/ansible-filebeat
filebeat_output_elasticsearch_hosts: 172.16.0.161:9200 filebeat_output_elasticsearch_hosts: <YOUR_ELASTICSEARCH_IP>:9200
filebeat_xpack_security: true
filebeat_node_name: node-1
node_certs_generator: true

View File

@ -3,10 +3,9 @@ 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: 127.0.0.1
elasticsearch_host: 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: true
elasticsearch_bootstrap_node: false elasticsearch_bootstrap_node: false
elasticsearch_master_candidate: false elasticsearch_master_candidate: false
elasticsearch_cluster_nodes: elasticsearch_cluster_nodes:

View File

@ -259,7 +259,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_host }} port={{ elasticsearch_http_port }} delay=3 timeout=400 wait_for: host={{ elasticsearch_network_host }} port={{ elasticsearch_http_port }} delay=3 timeout=400
tags: tags:
- configure - configure
- init - init

View File

@ -23,3 +23,5 @@ node_certs_destination: /etc/kibana/certs
rsync_path: /usr/bin/rsync rsync_path: /usr/bin/rsync
rsync_user: vagrant rsync_user: vagrant
rsync_extra_parameters: -avg -e 'ssh -o StrictHostKeyChecking=no' --rsync-path='sudo rsync' rsync_extra_parameters: -avg -e 'ssh -o StrictHostKeyChecking=no' --rsync-path='sudo rsync'
kibana_plugin_install_ignore_error: true

View File

@ -93,6 +93,7 @@
path: "{{ filebeat_module_folder }}" path: "{{ filebeat_module_folder }}"
register: filebeat_module_folder register: filebeat_module_folder
- name: Download Filebeat module package - name: Download Filebeat module package
get_url: get_url:
url: https://packages.wazuh.com/3.x/filebeat/{{ filebeat_module_package_name }} url: https://packages.wazuh.com/3.x/filebeat/{{ filebeat_module_package_name }}