Instances added to distributed test
This commit is contained in:
parent
8350a30dac
commit
725b764a80
@ -86,34 +86,6 @@
|
|||||||
# 1. Wazuh indexer
|
# 1. Wazuh indexer
|
||||||
- role: ../../roles/wazuh/wazuh-indexer
|
- role: ../../roles/wazuh/wazuh-indexer
|
||||||
when: inventory_hostname in groups['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
|
# 2. Managers
|
||||||
- role: ../../roles/wazuh/ansible-wazuh-manager
|
- role: ../../roles/wazuh/ansible-wazuh-manager
|
||||||
when: inventory_hostname in groups['managers']
|
when: inventory_hostname in groups['managers']
|
||||||
@ -122,36 +94,36 @@
|
|||||||
# 3. Wazuh dashboard
|
# 3. Wazuh dashboard
|
||||||
- role: ../../roles/wazuh/wazuh-dashboard
|
- role: ../../roles/wazuh/wazuh-dashboard
|
||||||
when: inventory_hostname in groups['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:
|
# 4. Agents:
|
||||||
- role: ../../roles/wazuh/ansible-wazuh-agent
|
- role: ../../roles/wazuh/ansible-wazuh-agent
|
||||||
vars:
|
vars:
|
||||||
wazuh_managers: '{{ wazuh_managers_list }}'
|
wazuh_managers: '{{ wazuh_managers_list }}'
|
||||||
when: inventory_hostname in groups['agents']
|
when: inventory_hostname in groups['agents']
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user