Kibana test is probably fixed, saving changes ...
This commit is contained in:
parent
873e9759ae
commit
d08b013224
@ -5,6 +5,9 @@ driver:
|
|||||||
name: docker
|
name: docker
|
||||||
lint:
|
lint:
|
||||||
name: yamllint
|
name: yamllint
|
||||||
|
options:
|
||||||
|
config-data:
|
||||||
|
ignore: .virtualenv
|
||||||
platforms:
|
platforms:
|
||||||
- name: bionic
|
- name: bionic
|
||||||
image: solita/ubuntu-systemd:bionic
|
image: solita/ubuntu-systemd:bionic
|
||||||
|
|||||||
@ -14,7 +14,7 @@ def test_port_kibana_is_open(host):
|
|||||||
def test_find_correct_elasticsearch_version(host):
|
def test_find_correct_elasticsearch_version(host):
|
||||||
"""Test if we find the kibana/elasticsearch version in package.json"""
|
"""Test if we find the kibana/elasticsearch version in package.json"""
|
||||||
kibana = host.file("/usr/share/kibana/plugins/wazuh/package.json")
|
kibana = host.file("/usr/share/kibana/plugins/wazuh/package.json")
|
||||||
assert kibana.contains("6.7.1")
|
assert kibana.contains("7.1.1")
|
||||||
|
|
||||||
|
|
||||||
def test_wazuh_plugin_installed(host):
|
def test_wazuh_plugin_installed(host):
|
||||||
|
|||||||
@ -44,7 +44,9 @@
|
|||||||
tags: xpack-security
|
tags: xpack-security
|
||||||
|
|
||||||
- name: Importing key & certificate files from generator node
|
- name: Importing key & certificate files from generator node
|
||||||
shell: "{{rsync_path}} {{rsync_extra_parameters}} {{rsync_user}}@{{node_certs_generator_ip}}:{{node_certs_source}}/{{kibana_node_name}}/ {{node_certs_destination}}/"
|
command: >-
|
||||||
|
{{ rsync_path }} {{ rsync_extra_parameters }} {{ rsync_user }}@{{ node_certs_generator_ip }}:
|
||||||
|
{{ node_certs_source }}/{{ kibana_node_name }}/ {{ node_certs_destination }}/
|
||||||
when:
|
when:
|
||||||
- not node_certs_generator
|
- not node_certs_generator
|
||||||
- kibana_xpack_security
|
- kibana_xpack_security
|
||||||
@ -52,7 +54,9 @@
|
|||||||
tags: xpack-security
|
tags: xpack-security
|
||||||
|
|
||||||
- name: Importing ca certificate file from generator node
|
- name: Importing ca certificate file from generator node
|
||||||
shell: "{{rsync_path}} {{rsync_extra_parameters}} {{rsync_user}}@{{node_certs_generator_ip}}:{{node_certs_source}}/ca/ {{node_certs_destination}}/"
|
command: >-
|
||||||
|
{{ rsync_path }} {{ rsync_extra_parameters }} {{ rsync_user }}@{{ node_certs_generator_ip }}:
|
||||||
|
{{ node_certs_source }}/ca/ {{ node_certs_destination }}/
|
||||||
when:
|
when:
|
||||||
- not node_certs_generator
|
- not node_certs_generator
|
||||||
- kibana_xpack_security
|
- kibana_xpack_security
|
||||||
@ -61,14 +65,22 @@
|
|||||||
tags: xpack-security
|
tags: xpack-security
|
||||||
|
|
||||||
- name: Ensuring certificates folder owner
|
- name: Ensuring certificates folder owner
|
||||||
shell: "chown -R kibana: {{node_certs_destination}}/"
|
file:
|
||||||
|
path: "{{ node_certs_destination }}/"
|
||||||
|
state: directory
|
||||||
|
recurse: yes
|
||||||
|
owner: kibana
|
||||||
|
group: kibana
|
||||||
when:
|
when:
|
||||||
- check_certs_permissions is defined
|
- check_certs_permissions is defined
|
||||||
- kibana_xpack_security
|
- kibana_xpack_security
|
||||||
tags: xpack-security
|
tags: xpack-security
|
||||||
|
|
||||||
- name: Ensuring certificates folder owner
|
- name: Ensuring certificates folder owner
|
||||||
shell: "chmod -R 770 {{node_certs_destination}}/"
|
file:
|
||||||
|
path: "{{ node_certs_destination }}/"
|
||||||
|
mode: '0770'
|
||||||
|
recurse: yes
|
||||||
when:
|
when:
|
||||||
- check_certs_permissions is defined
|
- check_certs_permissions is defined
|
||||||
- kibana_xpack_security
|
- kibana_xpack_security
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user