Distributed test updated
This commit is contained in:
parent
df42b9bcae
commit
8350a30dac
@ -46,7 +46,33 @@
|
||||
vars:
|
||||
generate_certs: true
|
||||
perform_installation: false
|
||||
instances: '{{ wazuh_endpoint_list }}'
|
||||
instances:
|
||||
node1:
|
||||
name: wazuh-es01 # Important: must be equal to indexer_node_name.
|
||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7.private_ip }}" # When unzipping, the node will search for its node name folder to get the cert.
|
||||
role: indexer
|
||||
node2:
|
||||
name: wazuh-es02
|
||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7_2.private_ip }}"
|
||||
role: indexer
|
||||
# node3:
|
||||
# name: node-3
|
||||
# ip: "{{ hostvars.wi3.private_ip }}"
|
||||
# role: indexer
|
||||
node4:
|
||||
name: wazuh-mgr01
|
||||
ip: "{{ hostvars.molecule_wazuh_manager_debian9.private_ip }}"
|
||||
role: wazuh
|
||||
node_type: master
|
||||
node5:
|
||||
name: wazuh-mgr02
|
||||
ip: "{{ hostvars.molecule_wazuh_manager_centos7.private_ip }}"
|
||||
role: wazuh
|
||||
node_type: worker
|
||||
node6:
|
||||
name: wazuh-dash01
|
||||
ip: "{{ hostvars.molecule_wazuh_dashboard_centos7.private_ip }}"
|
||||
role: dashboard
|
||||
pre_tasks:
|
||||
- name: overview of cert configuration
|
||||
debug:
|
||||
@ -60,6 +86,34 @@
|
||||
# 1. Wazuh indexer
|
||||
- role: ../../roles/wazuh/wazuh-indexer
|
||||
when: inventory_hostname in groups['indexer']
|
||||
vars:
|
||||
instances:
|
||||
node1:
|
||||
name: wazuh-es01 # Important: must be equal to indexer_node_name.
|
||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7.private_ip }}" # When unzipping, the node will search for its node name folder to get the cert.
|
||||
role: indexer
|
||||
node2:
|
||||
name: wazuh-es02
|
||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7_2.private_ip }}"
|
||||
role: indexer
|
||||
# node3:
|
||||
# name: node-3
|
||||
# ip: "{{ hostvars.wi3.private_ip }}"
|
||||
# role: indexer
|
||||
node4:
|
||||
name: wazuh-mgr01
|
||||
ip: "{{ hostvars.molecule_wazuh_manager_debian9.private_ip }}"
|
||||
role: wazuh
|
||||
node_type: master
|
||||
node5:
|
||||
name: wazuh-mgr02
|
||||
ip: "{{ hostvars.molecule_wazuh_manager_centos7.private_ip }}"
|
||||
role: wazuh
|
||||
node_type: worker
|
||||
node6:
|
||||
name: wazuh-dash01
|
||||
ip: "{{ hostvars.molecule_wazuh_dashboard_centos7.private_ip }}"
|
||||
role: dashboard
|
||||
# 2. Managers
|
||||
- role: ../../roles/wazuh/ansible-wazuh-manager
|
||||
when: inventory_hostname in groups['managers']
|
||||
@ -68,6 +122,34 @@
|
||||
# 3. Wazuh dashboard
|
||||
- role: ../../roles/wazuh/wazuh-dashboard
|
||||
when: inventory_hostname in groups['dashboard']
|
||||
vars:
|
||||
instances:
|
||||
node1:
|
||||
name: wazuh-es01 # Important: must be equal to indexer_node_name.
|
||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7.private_ip }}" # When unzipping, the node will search for its node name folder to get the cert.
|
||||
role: indexer
|
||||
node2:
|
||||
name: wazuh-es02
|
||||
ip: "{{ hostvars.molecule_wazuh_indexer_centos7_2.private_ip }}"
|
||||
role: indexer
|
||||
# node3:
|
||||
# name: node-3
|
||||
# ip: "{{ hostvars.wi3.private_ip }}"
|
||||
# role: indexer
|
||||
node4:
|
||||
name: wazuh-mgr01
|
||||
ip: "{{ hostvars.molecule_wazuh_manager_debian9.private_ip }}"
|
||||
role: wazuh
|
||||
node_type: master
|
||||
node5:
|
||||
name: wazuh-mgr02
|
||||
ip: "{{ hostvars.molecule_wazuh_manager_centos7.private_ip }}"
|
||||
role: wazuh
|
||||
node_type: worker
|
||||
node6:
|
||||
name: wazuh-dash01
|
||||
ip: "{{ hostvars.molecule_wazuh_dashboard_centos7.private_ip }}"
|
||||
role: dashboard
|
||||
# 4. Agents:
|
||||
- role: ../../roles/wazuh/ansible-wazuh-agent
|
||||
vars:
|
||||
|
||||
@ -7,6 +7,7 @@ indexer_network_host: "{{ indexer_addresses[0] }}"
|
||||
indexer_node_master: false
|
||||
indexer_node_ingest: false
|
||||
indexer_node_data: false
|
||||
role: 'dashboard'
|
||||
|
||||
wazuh_api_credentials:
|
||||
- id: default
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
single_node: false
|
||||
indexer_node_master: true
|
||||
minimum_master_nodes: 1
|
||||
role: 'indexer'
|
||||
|
||||
indexer_network_host: '{{ private_ip }}'
|
||||
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
|
||||
wazuh_manager_fqdn: '{{ ansible_hostname }}'
|
||||
filebeat_output_indexer_hosts: '{{ indexer_addresses }}'
|
||||
node_type: "{{ 'master' if ansible_hostname == 'wazuh-mgr01' else 'worker' }}"
|
||||
role: 'wazuh'
|
||||
|
||||
wazuh_manager_config:
|
||||
connection:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user