mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
prevent state from failing if versionlock plugin not installed
This commit is contained in:
@@ -3,16 +3,17 @@
|
|||||||
# https://securityonion.net/license; you may not use this file except in compliance with the
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
{% from 'versionlock/map.jinja' import VERSIONLOCKMERGED %}
|
{% if grains.os_family == 'Debian' or (grains.os_family == 'RedHat' and salt['pkg.version']('python3-dnf-plugin-versionlock') != "") %}
|
||||||
|
{% from 'versionlock/map.jinja' import VERSIONLOCKMERGED %}
|
||||||
{% for pkg in VERSIONLOCKMERGED.hold %}
|
{% for pkg in VERSIONLOCKMERGED.hold %}
|
||||||
{{pkg}}_held:
|
{{pkg}}_held:
|
||||||
pkg.held:
|
pkg.held:
|
||||||
- name: {{pkg}}
|
- name: {{pkg}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for pkg in VERSIONLOCKMERGED.UNHOLD %}
|
{% for pkg in VERSIONLOCKMERGED.UNHOLD %}
|
||||||
{{pkg}}_unheld:
|
{{pkg}}_unheld:
|
||||||
pkg.unheld:
|
pkg.unheld:
|
||||||
- name: {{pkg}}
|
- name: {{pkg}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user