fix issues with repo.client state

This commit is contained in:
m0duspwnens
2021-04-12 16:33:32 -04:00
parent 9240d376f3
commit eb7bf58f30

View File

@@ -26,7 +26,8 @@ airgap_repo:
{{ file }}: {{ file }}:
file.absent: file.absent:
- name: {{ REPOPATH }}{{ file }} - name: {{ REPOPATH }}{{ file }}
- onchanges_in: cleanyum - onchanges_in:
- module: cleanyum
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@@ -59,19 +60,22 @@ crsecurityonionrepo:
yumconf: yumconf:
file.managed: file.managed:
- name: /etc/yum.conf - name: /etc/yum.conf
- source: salt:/repo/client/files/centos/yum.conf.jinja - source: salt://repo/client/files/centos/yum.conf.jinja
- mode: 644 - mode: 644
- template: jinja - template: jinja
{% endif %} {% endif %}
cleanyum: cleanyum:
module.run: module.run:
- pkg.clean_metadata - pkg.clean_metadata: []
- onchanges: - onchanges:
{% if ISAIRGAP %}
- file: airgapyum - file: airgapyum
- pkgrepo: airgap_repo - pkgrepo: airgap_repo
{% else %}
- file: crsecurityonionrepo - file: crsecurityonionrepo
- file: yumconf - file: yumconf
{% endif %}
{% endif %} {% endif %}