Skip to content

Allow disabling of Beats TLS explicitly #7

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

Merged
merged 2 commits into from
Feb 1, 2023
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
1 change: 1 addition & 0 deletions molecule/kibana_default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- gpg
- curl
- procps
- gpg-agent
update_cache: yes
when: ansible_os_family == "Debian"
- name: Install git
Expand Down
4 changes: 4 additions & 0 deletions roles/beats/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ elastic_security: true
elastic_ca_dir: /opt/es-ca
elastic_ca_pass: PleaseChangeMe
elastic_initial_passwords: /usr/share/elasticsearch/initial_passwords

# Variables for debugging and development

elastic_override_beats_tls: false
1 change: 1 addition & 0 deletions roles/beats/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
when:
- elastic_security | bool
- elastic_variant != "oss"
- not elastic_override_beats_tls | bool

- name: Set elasticsearch_ca variable if not already done by user
set_fact:
Expand Down
4 changes: 4 additions & 0 deletions roles/logstash/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ elastic_ca_pass: PleaseChangeMe
elastic_release: 7
elastic_variant: elastic
elastic_security: true

# Variables for debugging and development

elastic_override_beats_tls: false
4 changes: 3 additions & 1 deletion roles/logstash/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
- name: Activate TLS for Beats for full stack
set_fact:
logstash_beats_tls: true
when: logstash_beats_tls is undefined
when:
- logstash_beats_tls is undefined
- not elastic_override_beats_tls | bool

- name: Set Elasticsearch hosts to localhost if no other information available
set_fact:
Expand Down