mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Master Module - Add certs for Docker Registry
This commit is contained in:
@@ -11,6 +11,9 @@ http:
|
||||
addr: :5000
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
tls:
|
||||
certificate: /etc/pki/registry.crt
|
||||
key: /etc/pki/registry.key
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: true
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
x509.pem_managed:
|
||||
- text: {{ salt['mine.get'](master, 'x509.get_pem_entries')[master]['/etc/pki/ca.crt']|replace('\n', '') }}
|
||||
|
||||
{% if grains['role'] == 'so-master' %}
|
||||
# Request a cert and drop it where it needs to go to be distributed
|
||||
/etc/pki/filebeat.crt:
|
||||
x509.certificate_managed:
|
||||
@@ -35,4 +36,6 @@
|
||||
- managed_private_key:
|
||||
name: /etc/pki/registry.key
|
||||
bits: 4096
|
||||
backup: True
|
||||
backup: True
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user