Setup script - Change order of operations

This commit is contained in:
Mike Reeves
2018-06-06 14:10:45 -04:00
parent 76748f75e2
commit 8a989d537f
2 changed files with 11 additions and 2 deletions

View File

@@ -8,6 +8,14 @@ trusttheca:
- name: /etc/ssl/certs/intca.crt
- text: {{ salt['mine.get'](master, 'x509.get_pem_entries')[master]['/etc/pki/ca.crt']|replace('\n', '') }}
# Install packages needed for the sensor
m2cryptopkgs:
pkg.installed:
- skip_suggestions: False
- pkgs:
- python-m2crypto
{% if grains['role'] == 'so-master' %}
# Request a cert and drop it where it needs to go to be distributed
/etc/pki/filebeat.crt: