Adding variable to parametrize elastic template URL

This commit is contained in:
Zenidd 2020-06-23 17:19:37 +02:00
parent 600dd40896
commit d82d1b51d1
4 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,8 @@
--- ---
filebeat_version: 7.7.0 filebeat_version: 7.7.0
wazuh_template_branch: v3.13.0
filebeat_create_config: true filebeat_create_config: true
filebeat_output_elasticsearch_enabled: false filebeat_output_elasticsearch_enabled: false

View File

@ -11,7 +11,7 @@
- name: Fetch latest Wazuh alerts template - name: Fetch latest Wazuh alerts template
get_url: get_url:
url: https://raw.githubusercontent.com/wazuh/wazuh/master/extensions/elasticsearch/7.x/wazuh-template.json url: https://raw.githubusercontent.com/wazuh/wazuh/{{ wazuh_template_branch }}/extensions/elasticsearch/7.x/wazuh-template.json
dest: "/etc/filebeat/wazuh-template.json" dest: "/etc/filebeat/wazuh-template.json"
owner: root owner: root
group: root group: root

View File

@ -1,6 +1,8 @@
--- ---
filebeat_version: 7.7.0 filebeat_version: 7.7.0
wazuh_template_branch: v3.13.0
filebeat_create_config: true filebeat_create_config: true
filebeat_prospectors: filebeat_prospectors:

View File

@ -11,7 +11,7 @@
- name: Fetch latest Wazuh alerts template - name: Fetch latest Wazuh alerts template
get_url: get_url:
url: https://raw.githubusercontent.com/wazuh/wazuh/master/extensions/elasticsearch/7.x/wazuh-template.json url: https://raw.githubusercontent.com/wazuh/wazuh/{{ wazuh_template_branch }}/extensions/elasticsearch/7.x/wazuh-template.json
dest: "/etc/filebeat/wazuh-template.json" dest: "/etc/filebeat/wazuh-template.json"
owner: root owner: root
group: root group: root