mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 15:33:06 +01:00
fix so-status for dockerregistry
This commit is contained in:
@@ -13,10 +13,10 @@ so-registry:
|
|||||||
docker_container.absent:
|
docker_container.absent:
|
||||||
- force: True
|
- force: True
|
||||||
|
|
||||||
so-registry_so-status.disabled:
|
so-dockerregistry_so-status.disabled:
|
||||||
file.comment:
|
file.comment:
|
||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- regex: ^so-registry$
|
- regex: ^so-dockerregistry$
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ so-dockerregistry:
|
|||||||
- x509: registry_crt
|
- x509: registry_crt
|
||||||
- x509: registry_key
|
- x509: registry_key
|
||||||
|
|
||||||
delete_so-registry_so-status.disabled:
|
delete_so-dockerregistry_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- regex: ^so-registry$
|
- regex: ^so-dockerregistry$
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
{% from 'allowed_states.map.jinja' import allowed_states %}
|
{% from 'allowed_states.map.jinja' import allowed_states %}
|
||||||
{% if sls.split('.')[0] in allowed_states %}
|
{% if sls.split('.')[0] in allowed_states %}
|
||||||
|
|
||||||
append_so-registry_so-status.conf:
|
append_so-dockerregistry_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- text: so-registry
|
- text: so-dockerregistry
|
||||||
- unless: grep -q so-registry /opt/so/conf/so-status/so-status.conf
|
- unless: grep -q so-dockerregistry /opt/so/conf/so-status/so-status.conf
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user