Setup - Add peer config to the master config

This commit is contained in:
Mike Reeves
2018-05-24 11:23:05 -04:00
parent 9311031931
commit 652a0d0592
3 changed files with 7 additions and 3 deletions

View File

@@ -53,3 +53,7 @@ file_roots:
pillar_roots:
base:
- /opt/so/saltstack/pillar
peer:
.*:
- x509.sign_remote_certificate

View File

@@ -4,12 +4,12 @@
/usr/local/share/ca-certificates/intca.crt:
x509.pem_managed:
- text: {{ salt['mine.get']('ca', 'x509.get_pem_entries')['ca']['/etc/pki/ca.crt']|replace('\n', '') }}
- text: {{ salt['mine.get']('master', 'x509.get_pem_entries')['ca']['/etc/pki/ca.crt']|replace('\n', '') }}
# Request a cert and drop it where it needs to go to be distributed
/etc/pki/filebeat.crt:
x509.certificate_managed:
- ca_server: ca
- ca_server: ca.example.com
- signing_policy: filebeat
- public_key: /etc/pki/filebeat.key
- CN: security.onion