Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config.yml template update #743

Merged
merged 2 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions roles/wazuh/wazuh-indexer/tasks/security_actions.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
- name: Remove demo certs
file:
path: "{{ item }}"
state: absent
with_items:
- "{{ indexer_conf_path }}/demo-indexer-key.pem"
- "{{ indexer_conf_path }}/demo-indexer.pem"


- name: Configure IP (Private address)
set_fact:
target_address: "{{ hostvars[inventory_hostname]['private_ip'] if not single_node else indexer_network_host }}"
Expand Down
16 changes: 8 additions & 8 deletions roles/wazuh/wazuh-indexer/templates/config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ nodes:
indexer:
{% for (key,value) in instances.items() %}
{% if (value.role is defined and value.role == 'indexer') %}
name: {{ value.name }}
ip: {{ value.ip }}
- name: {{ value.name }}
ip: {{ value.ip }}
{% endif %}
{% endfor %}

Expand All @@ -13,21 +13,21 @@ nodes:
server:
{% for (key,value) in instances.items() %}
{% if (value.role is defined and value.role == 'wazuh') %}
name: {{ value.name }}
ip: {{ value.ip }}
- name: {{ value.name }}
ip: {{ value.ip }}
{% endif %}
{% if (value.node_type is defined and value.node_type == 'master') %}
node_type: master
node_type: master
{% elif (value.node_type is defined and value.node_type == 'worker') %}
node_type: worker
node_type: worker
{% endif %}
{% endfor %}

# Dashboard node
dashboard:
{% for (key,value) in instances.items() %}
{% if (value.role is defined and value.role == 'dashboard') %}
name: {{ value.name }}
ip: {{ value.ip }}
- name: {{ value.name }}
ip: {{ value.ip }}
{% endif %}
{% endfor %}