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