Skip to content

Commit e87769a

Browse files
authored
Enable security per default in full stack mode (NETWAYS#104)
* Enable security per default in full stack mode * Remove stupid fqcn rule fixes NETWAYS#103 fixes NETWAYS#34
1 parent 0eeb8fd commit e87769a

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ skip_list:
22
- 'command-instead-of-module'
33
- 'risky-shell-pipe'
44
- 'role-name'
5+
- 'fqcn-builtins'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Aside from `logstash.yml` we can manage Logstashs pipelines.
4949
* *logstash_connector*: Create pipelines to connect git managed pipelines. (default: `true`)
5050
* *logstash_connector_pipelines*: Definition of connector pipelines. See docs/connector-pipelines.md for details
5151
* *logstash_elasticsearch*: Address of Elasticsearch instance for default output (default: list of Elasticsearch nodes from `elasticsearch` role or `localhost` when used standalone)
52-
* *logstash_security*: Enable X-Security (default: `false`)
52+
* *logstash_security*: Enable X-Security (No default set, but will be activated when in full stack mode)
5353
* *logstash_legacy_monitoring*: Enables legacy monitoring - ignored when `elastic_stack_full_stack` is not set. (default: `true`)
5454

5555
These variables are identical over all our elastic related roles, hence the different naming scheme.

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ logstash_beats_input: true
2828
logstash_connector: true
2929

3030
# logstash security
31-
logstash_security: false
3231
logstash_user: logstash_writer
3332
logstash_password: password
3433

tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
- configuration
2222
- logstash_configuration
2323

24+
- name: Enable security as default when in full stack mode
25+
set_fact:
26+
logstash_security: true
27+
when:
28+
- logstash_security is undefined or elastic_security | bool
29+
- elastic_stack_full_stack | bool
30+
- elastic_variant == "elastic"
31+
2432
- name: Ensure Logstash is installed
2533
package:
2634
name: "logstash{{ logstash_version }}"

0 commit comments

Comments
 (0)