Skip to content

Commit 4b0e55a

Browse files
committed
Allow disabling of Beats TLS explicitly
fixes #6
1 parent 2117988 commit 4b0e55a

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

roles/beats/defaults/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ elastic_security: true
6666
elastic_ca_dir: /opt/es-ca
6767
elastic_ca_pass: PleaseChangeMe
6868
elastic_initial_passwords: /usr/share/elasticsearch/initial_passwords
69+
70+
# Variables for debugging and development
71+
72+
elastic_override_beats_tls: false

roles/beats/tasks/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
when:
1212
- elastic_security | bool
1313
- elastic_variant != "oss"
14+
- not elastic_override_beats_tls | bool
1415

1516
- name: Set elasticsearch_ca variable if not already done by user
1617
set_fact:

roles/logstash/defaults/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ elastic_ca_pass: PleaseChangeMe
6868
elastic_release: 7
6969
elastic_variant: elastic
7070
elastic_security: true
71+
72+
# Variables for debugging and development
73+
74+
elastic_override_beats_tls: false

roles/logstash/tasks/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
- name: Activate TLS for Beats for full stack
1919
set_fact:
2020
logstash_beats_tls: true
21-
when: logstash_beats_tls is undefined
21+
when:
22+
- logstash_beats_tls is undefined
23+
- not elastic_override_beats_tls | bool
2224

2325
- name: Set Elasticsearch hosts to localhost if no other information available
2426
set_fact:

0 commit comments

Comments
 (0)