Merge pull request #445 from wazuh/opendistro-fixes
Fixes for OpenDistro deployments
This commit is contained in:
commit
8cc10a3750
@ -4,6 +4,7 @@
|
||||
path: "{{ local_certs_path }}"
|
||||
register: certificates_folder
|
||||
delegate_to: localhost
|
||||
become: no
|
||||
tags:
|
||||
- generate-certs
|
||||
|
||||
@ -77,7 +78,8 @@
|
||||
|
||||
run_once: true
|
||||
delegate_to: localhost
|
||||
become: no
|
||||
tags:
|
||||
- generate-certs
|
||||
when:
|
||||
- not certificates_folder.stat.exists
|
||||
- not certificates_folder.stat.exists
|
||||
|
||||
@ -20,7 +20,6 @@ wazuh_app_url: https://packages.wazuh.com/wazuhapp/wazuhapp
|
||||
|
||||
# The OpenDistro package repository
|
||||
kibana_opendistro_version: -1.8.0-1 # Version includes the - for RedHat family compatibility, replace with = for Debian hosts
|
||||
kibana_opendistro_package: "opendistroforelasticsearch-kibana{{ kibana_opendistro_version }}"
|
||||
|
||||
package_repos:
|
||||
yum:
|
||||
|
||||
6
roles/opendistro/opendistro-kibana/tasks/main.yml
Normal file → Executable file
6
roles/opendistro/opendistro-kibana/tasks/main.yml
Normal file → Executable file
@ -23,7 +23,7 @@
|
||||
|
||||
- name: Install Kibana
|
||||
package:
|
||||
name: "{{ kibana_opendistro_package }}"
|
||||
name: "opendistroforelasticsearch-kibana{{ kibana_opendistro_version }}"
|
||||
state: present
|
||||
register: install
|
||||
tags: install
|
||||
@ -75,7 +75,7 @@
|
||||
- not build_from_sources
|
||||
|
||||
- name: Kibana optimization (can take a while)
|
||||
shell: /usr/share/kibana/node/bin/node {{ node_options }} /usr/share/kibana/src/cli --optimize
|
||||
shell: /usr/share/kibana/node/bin/node {{ node_options }} /usr/share/kibana/src/cli --optimize -c {{ kibana_conf_path }}/kibana.yml
|
||||
args:
|
||||
executable: /bin/bash
|
||||
become: yes
|
||||
@ -130,4 +130,4 @@
|
||||
state: started
|
||||
|
||||
- import_tasks: RMRedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user