Skip to content
14 changes: 7 additions & 7 deletions .github/workflows/test_full_stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ on:
- info
- warning
- debug
# push:
# tags:
# - '*'
# branches:
# - main
# merge_group:
schedule:
- cron: "0 4 * * *"

jobs:

Expand Down Expand Up @@ -52,13 +48,17 @@ jobs:

strategy:
fail-fast: false
max-parallel: 1
max-parallel: 6
matrix:
distro:
- rockylinux8
- rockylinux9
- ubuntu2004
- ubuntu2204
- debian10
- debian11
- centos7
- centos8
scenario:
- elasticstack_default
release:
Expand Down
3 changes: 3 additions & 0 deletions molecule/elasticstack_default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@
- name: Include kibana
include_role:
name: kibana
- name: Include Beats
include_role:
name: beats
13 changes: 6 additions & 7 deletions roles/elasticsearch/tasks/elasticsearch-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@
- Restart Elasticsearch
ignore_errors: "{{ ansible_check_mode }}"


- name: Get xpack.security.http.ssl.keystore.secure_password # noqa: risky-shell-pipe
shell: >
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
Expand Down Expand Up @@ -273,7 +272,6 @@
notify:
- Restart Elasticsearch


- name: Remove xpack.security.http.ssl.keystore.secure_password # noqa: risky-shell-pipe
shell: >
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
Expand All @@ -287,7 +285,6 @@
notify:
- Restart Elasticsearch


- name: Get xpack.security.http.ssl.truststore.secure_password # noqa: risky-shell-pipe
shell: >
if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
Expand Down Expand Up @@ -563,8 +560,9 @@
register: elasticsearch_cluster_status_bootstrap
changed_when: false
no_log: true
ignore_errors: true
when: not elasticsearch_passwords_file.stat.exists | bool
when:
- not elasticsearch_passwords_file.stat.exists | bool
- groups['elasticsearch'] | length > 1
until: elasticsearch_cluster_status_bootstrap.stdout == "green"
retries: 5
delay: 10
Expand All @@ -590,8 +588,9 @@
register: elasticsearch_cluster_status
changed_when: false
no_log: true
ignore_errors: true
when: elasticsearch_passwords_file.stat.exists | bool
when:
- elasticsearch_passwords_file.stat.exists | bool
- groups['elasticsearch'] | length > 1
until: elasticsearch_cluster_status.stdout == "green"
retries: 20
delay: 10
Expand Down