fix so-status for dockerregistry

This commit is contained in:
m0duspwnens
2023-05-12 16:05:23 -04:00
parent 4440ecd433
commit 57371ffe5a
3 changed files with 7 additions and 7 deletions

View File

@@ -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 %}

View File

@@ -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 %}

View File

@@ -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 %}