diff --git a/salt/filebeat/init.sls b/salt/filebeat/init.sls index 83f73de4f..2693663db 100644 --- a/salt/filebeat/init.sls +++ b/salt/filebeat/init.sls @@ -141,7 +141,7 @@ so-filebeat: - file: filebeatconf - file: filebeatmoduleconf - file: filebeatmoduledir - - x509: filebeat_crt + - x509: conf_filebeat_crt - x509: conf_filebeat_key - x509: trusttheca diff --git a/salt/logstash/init.sls b/salt/logstash/init.sls index a7ed361d6..c27631685 100644 --- a/salt/logstash/init.sls +++ b/salt/logstash/init.sls @@ -200,7 +200,7 @@ so-logstash: - file: es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }} {% endfor %} - require: - - x509: filebeat_crt + - x509: etc_filebeat_crt {% if grains['role'] == 'so-heavynode' %} - x509: trusttheca {% else %} diff --git a/salt/ssl/init.sls b/salt/ssl/init.sls index 645ef0fe0..a741272d6 100644 --- a/salt/ssl/init.sls +++ b/salt/ssl/init.sls @@ -174,7 +174,7 @@ etc_filebeat_key: - new: True {% if salt['file.file_exists']('/etc/pki/filebeat.key') -%} - prereq: - - x509: /etc/pki/filebeat.crt + - x509: etc_filebeat_crt {%- endif %} - timeout: 30 - retry: @@ -182,7 +182,7 @@ etc_filebeat_key: interval: 30 # Request a cert and drop it where it needs to go to be distributed -filebeat_crt: +etc_filebeat_crt: x509.certificate_managed: - name: /etc/pki/filebeat.crt - ca_server: {{ ca_server }} @@ -493,7 +493,7 @@ conf_filebeat_key: - new: True {% if salt['file.file_exists']('/opt/so/conf/filebeat/etc/pki/filebeat.key') -%} - prereq: - - x509: filebeat_crt + - x509: conf_filebeat_crt {%- endif %} - timeout: 30 - retry: @@ -501,7 +501,7 @@ conf_filebeat_key: interval: 30 # Request a cert and drop it where it needs to go to be distributed -filebeat_crt: +conf_filebeat_crt: x509.certificate_managed: - name: /opt/so/conf/filebeat/etc/pki/filebeat.crt - ca_server: {{ ca_server }}