mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-21 06:25:27 +01:00
Break out registry
This commit is contained in:
@@ -21,4 +21,3 @@ health:
|
||||
threshold: 3
|
||||
proxy:
|
||||
remoteurl: https://registry-1.docker.io
|
||||
|
||||
40
salt/registry/init.sls
Normal file
40
salt/registry/init.sls
Normal file
@@ -0,0 +1,40 @@
|
||||
# Create the config directory for the docker registry
|
||||
dockerregistryconfdir:
|
||||
file.directory:
|
||||
- name: /opt/so/conf/docker-registry/etc
|
||||
- user: 939
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
dockerregistrydir:
|
||||
file.directory:
|
||||
- name: /nsm/docker/registry
|
||||
- user: 939
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
dockerregistrylogdir:
|
||||
file.directory:
|
||||
- name: /opt/so/log/docker-registry
|
||||
- user: 939
|
||||
- group: 939
|
||||
- makedirs: true
|
||||
|
||||
# Copy the config
|
||||
dockerregistryconf:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/docker-registry/etc/config.yml
|
||||
- source: salt://master/files/registry/config.yml
|
||||
|
||||
# Install the registry container
|
||||
so-dockerregistry:
|
||||
docker_container.running:
|
||||
- image: registry:2
|
||||
- hostname: so-registry
|
||||
- port_bindings:
|
||||
- 0.0.0.0:5000:5000
|
||||
- binds:
|
||||
- /opt/so/conf/docker-registry/etc/config.yml:/etc/docker/registry/config.yml:ro
|
||||
- /opt/so/conf/docker-registry:/var/lib/registry:rw
|
||||
- /etc/pki/registry.crt:/etc/pki/registry.crt:ro
|
||||
- /etc/pki/registry.key:/etc/pki/registry.key:ro
|
||||
@@ -43,10 +43,11 @@ base:
|
||||
'G@role:so-eval':
|
||||
- ca
|
||||
- ssl
|
||||
- registry
|
||||
- master
|
||||
- common
|
||||
- sensoroni
|
||||
- firewall
|
||||
- master
|
||||
- idstools
|
||||
{%- if OSQUERY != 0 %}
|
||||
- mysql
|
||||
@@ -84,6 +85,7 @@ base:
|
||||
'G@role:so-master':
|
||||
- ca
|
||||
- ssl
|
||||
- registry
|
||||
- common
|
||||
- cyberchef
|
||||
- sensoroni
|
||||
|
||||
Reference in New Issue
Block a user