2
0
salt-formula/salt/hold.sls
2022-03-31 15:27:58 -06:00

13 lines
395 B
Plaintext

{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import salt_settings with context %}
{% if salt_settings.hold_version is defined and grains.os_family|lower == 'redhat' %}
salt-install-hold-plugin:
pkg.installed:
{% if grains.osmajorrelease > 7 %}
- name: python3-dnf-plugin-versionlock
{% else %}
- name: yum-plugin-versionlock
{% endif %}
{% endif %}