mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 07:23:06 +01:00
Break out registry
This commit is contained in:
@@ -21,4 +21,3 @@ health:
|
|||||||
threshold: 3
|
threshold: 3
|
||||||
proxy:
|
proxy:
|
||||||
remoteurl: https://registry-1.docker.io
|
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':
|
'G@role:so-eval':
|
||||||
- ca
|
- ca
|
||||||
- ssl
|
- ssl
|
||||||
|
- registry
|
||||||
|
- master
|
||||||
- common
|
- common
|
||||||
- sensoroni
|
- sensoroni
|
||||||
- firewall
|
- firewall
|
||||||
- master
|
|
||||||
- idstools
|
- idstools
|
||||||
{%- if OSQUERY != 0 %}
|
{%- if OSQUERY != 0 %}
|
||||||
- mysql
|
- mysql
|
||||||
@@ -84,6 +85,7 @@ base:
|
|||||||
'G@role:so-master':
|
'G@role:so-master':
|
||||||
- ca
|
- ca
|
||||||
- ssl
|
- ssl
|
||||||
|
- registry
|
||||||
- common
|
- common
|
||||||
- cyberchef
|
- cyberchef
|
||||||
- sensoroni
|
- sensoroni
|
||||||
|
|||||||
@@ -364,6 +364,7 @@ if (whiptail_you_sure) ; then
|
|||||||
salt_checkin >> $SETUPLOG 2>&1
|
salt_checkin >> $SETUPLOG 2>&1
|
||||||
salt-call state.apply ca >> $SETUPLOG 2>&1
|
salt-call state.apply ca >> $SETUPLOG 2>&1
|
||||||
salt-call state.apply ssl >> $SETUPLOG 2>&1
|
salt-call state.apply ssl >> $SETUPLOG 2>&1
|
||||||
|
salt-call state.apply registry >> $SETUPLOG 2>&1
|
||||||
echo -e "XXX\n43\nInstalling Common Components... \nXXX"
|
echo -e "XXX\n43\nInstalling Common Components... \nXXX"
|
||||||
salt-call state.apply common >> $SETUPLOG 2>&1
|
salt-call state.apply common >> $SETUPLOG 2>&1
|
||||||
echo -e "XXX\n45\nApplying firewall rules... \nXXX"
|
echo -e "XXX\n45\nApplying firewall rules... \nXXX"
|
||||||
@@ -603,6 +604,7 @@ if (whiptail_you_sure) ; then
|
|||||||
salt_checkin >> $SETUPLOG 2>&1
|
salt_checkin >> $SETUPLOG 2>&1
|
||||||
salt-call state.apply ca >> $SETUPLOG 2>&1
|
salt-call state.apply ca >> $SETUPLOG 2>&1
|
||||||
salt-call state.apply ssl >> $SETUPLOG 2>&1
|
salt-call state.apply ssl >> $SETUPLOG 2>&1
|
||||||
|
salt-call state.apply registry >> $SETUPLOG 2>&1
|
||||||
salt-call state.apply master >> $SETUPLOG 2>&1
|
salt-call state.apply master >> $SETUPLOG 2>&1
|
||||||
echo -e "XXX\n15\nInstalling core components... \nXXX"
|
echo -e "XXX\n15\nInstalling core components... \nXXX"
|
||||||
salt-call state.apply common >> $SETUPLOG 2>&1
|
salt-call state.apply common >> $SETUPLOG 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user