handle salt-cloud package

This commit is contained in:
m0duspwnens
2024-12-19 10:12:29 -05:00
parent b24aa2f797
commit 7a8fd8c3e5
2 changed files with 8 additions and 3 deletions

View File

@@ -8,6 +8,9 @@
include:
- salt.minion
{% if salt['pillar.get']('hypervisor:nodes', {} ) %}
- salt.cloud
{% endif %}
hold_salt_master_package:
module.run:

View File

@@ -37,12 +37,14 @@ install_salt_minion:
{% endif %}
{% if INSTALLEDSALTVERSION|string == SALTVERSION|string %}
# only hold the package if it is already installed
hold_salt_packages:
pkg.held:
- pkgs:
{% for package in SALTPACKAGES %}
{% if salt['pkg.version'](package) %}
- {{ package }}: {{SALTVERSION}}-0.*
{% endif %}
{% endfor %}
remove_error_log_level_logfile: