Skip to content

Fix #40 #46

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 10, 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: 0 additions & 1 deletion docs/role-logstash.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ Aside from `logstash.yml` we can manage Logstashs pipelines.
* *logstash_beats_input*: Enable default pipeline with `beats` input (default: `true`)
* *logstash_beats_input_congestion*: Optional congestion threshold for the beats input pipeline
* *logstash_beats_tls*: Activate TLS for the beats input pipeline (default: none but `true` with full stack setup if not set)
* *logstash_beats_tls_encryptkey*: Enable encryption of key for beats input - disabling used as a workaround on certain hosts (default: true)
* *logstash_tls_key_passphrase*: Passphrase for Logstash certificates (default: `ChangeMe`)
* *logstash_elasticsearch*: Address of Elasticsearch instance for default output (default: list of Elasticsearch nodes from `elasticsearch` role or `localhost` when used standalone)
* *logstash_security*: Enable X-Security (No default set, but will be activated when in full stack mode)
Expand Down
1 change: 0 additions & 1 deletion roles/logstash/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ logstash_pipelines:
# source: https://github.com/widhalmt/shipper-logstash-pipeline.git
logstash_elasticsearch_output: true
logstash_beats_input: true
logstash_beats_tls_encryptkey: true

# logstash security
logstash_user: logstash_writer
Expand Down
13 changes: 0 additions & 13 deletions roles/logstash/tasks/logstash-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,6 @@
tags:
- certificates

- name: Create Logstash compatible key
command: >
openssl pkcs8
-in {{ logstash_certs_dir }}/{{ inventory_hostname }}.key
-topk8
-passin pass:{{ logstash_tls_key_passphrase }}
-out {{ logstash_certs_dir }}/{{ inventory_hostname }}-pkcs8.key
-passout pass:{{ logstash_tls_key_passphrase }}
args:
creates: "{{ logstash_certs_dir }}/{{ inventory_hostname }}-pkcs8.key"
when: logstash_beats_tls_encryptkey | bool

- name: Create unencrypted Logstash compatible key
command: >
openssl pkcs8
Expand All @@ -147,7 +135,6 @@
-nocrypt
args:
creates: "{{ logstash_certs_dir }}/{{ inventory_hostname }}-pkcs8.key"
when: not logstash_beats_tls_encryptkey | bool

- name: Set permissions on Logstash key
file:
Expand Down
3 changes: 0 additions & 3 deletions roles/logstash/templates/beats-input.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ input {
ssl_verify_mode => force_peer
ssl_certificate_authorities => ["{{ logstash_certs_dir }}/ca.crt"]
ssl_peer_metadata => false
{% if logstash_beats_tls_encryptkey | bool %}
ssl_key_passphrase => "{{ logstash_tls_key_passphrase }}"
{% endif %}
{% endif %}

}
Expand Down