From 4a1e2a6d291f1bc61eeff24a7ffdfe9172f5cb4a Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 9 Oct 2018 14:01:44 -0400 Subject: [PATCH] Filebeat Module - The Fix is in --- salt/logstash/init.sls | 2 +- salt/ssl/init.sls | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/logstash/init.sls b/salt/logstash/init.sls index 2b2a04451..a0c5db388 100644 --- a/salt/logstash/init.sls +++ b/salt/logstash/init.sls @@ -131,5 +131,5 @@ so-logstash: - /opt/so/log/logstash:/var/log/logstash:rw - /sys/fs/cgroup:/sys/fs/cgroup:ro - /etc/pki/filebeat.crt:/usr/share/logstash/filebeat.crt:ro - - /etc/pki/filebeat.key:/usr/share/logstash/filebeat.key:ro + - /etc/pki/filebeat.p8:/usr/share/logstash/filebeat.key:ro - /etc/pki/ca.crt:/usr/share/filebeat/ca.crt:ro diff --git a/salt/ssl/init.sls b/salt/ssl/init.sls index 8b506e410..8ce992418 100644 --- a/salt/ssl/init.sls +++ b/salt/ssl/init.sls @@ -30,6 +30,8 @@ m2cryptopkgs: name: /etc/pki/filebeat.key bits: 4096 backup: True + cmd.run: + - name: "/usr/bin/openssl pkcs8 -in /etc/pki/filebeat.key -topk8 -out /etc/pki/filebeat.p8 -nocrypt" # Create Symlinks to the keys so I can distribute it to all the things filebeatdir: