mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
19 lines
375 B
Plaintext
19 lines
375 B
Plaintext
{% set show_top = salt['state.show_top']() %}
|
|
{% set top_states = show_top.values() | join(', ') %}
|
|
|
|
{% if 'yum' in top_states %}
|
|
|
|
yumconf:
|
|
file.managed:
|
|
- name: /etc/yum.conf
|
|
- source: salt://yum/etc/yum.conf.jinja
|
|
- mode: 644
|
|
- template: jinja
|
|
|
|
{% else %}
|
|
|
|
yum_state_not_allowed:
|
|
test.fail_without_changes:
|
|
- name: yum_state_not_allowed
|
|
|
|
{% endif %} |