Files
securityonion/salt/yum/init.sls
2020-09-09 16:48:50 -04:00

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