diff --git a/salt/ssl/init.sls b/salt/ssl/init.sls index c3029c10c..08532dcd2 100644 --- a/salt/ssl/init.sls +++ b/salt/ssl/init.sls @@ -34,10 +34,8 @@ m2cryptopkgs: # Convert the key to pkcs#8 so logstash will work correctly. filebeatpkcs: cmd.run: - - name: /usr/bin/openssl pkcs8 -in /etc/pki/filebeat.key -topk8 -out /etc/pki/filebeat.p8 - - onchanges: - - file: /etc/pki/filebeat.key - + - name: "/usr/bin/openssl pkcs8 -in /etc/pki/filebeat.key -topk8 -out /etc/pki/filebeat.p8 -passout pass:" + # Create Symlinks to the keys so I can distribute it to all the things filebeatdir: file.directory: @@ -93,9 +91,6 @@ fbcertdir: # Convert the key to pkcs#8 so logstash will work correctly. filebeatpkcs: cmd.run: - - name: /usr/bin/openssl pkcs8 -in /opt/so/conf/filebeat/etc/pki/filebeat.key -topk8 -out /opt/so/conf/filebeat/etc/pki/filebeat.p8 - - onchanges: - - file: /opt/so/conf/filebeat/etc/pki/filebeat.p8 - + - name: "/usr/bin/openssl pkcs8 -in /opt/so/conf/filebeat/etc/pki/filebeat.key -topk8 -out /opt/so/conf/filebeat/etc/pki/filebeat.p8 -passout pass:" {% endif %}