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