mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix issues with repo.client state
This commit is contained in:
@@ -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 %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user