allow users to lock pkgs from upgrade

This commit is contained in:
m0duspwnens
2024-10-16 17:06:03 -04:00
parent a3933bdc79
commit 73ce526467
5 changed files with 60 additions and 0 deletions

13
salt/versionlock/init.sls Normal file
View File

@@ -0,0 +1,13 @@
{% from 'versionlock/map.jinja' import VERSIONLOCKMERGED %}
{% for pkg in VERSIONLOCKMERGED.hold %}
{{pkg}}_held:
pkg.held:
- name: {{pkg}}
{% endfor %}
{% for pkg in VERSIONLOCKMERGED.UNHOLD %}
{{pkg}}_unheld:
pkg.unheld:
- name: {{pkg}}
{% endfor %}