mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #14869 from Security-Onion-Solutions/saltuproc
add pack only holding package if installed. remove redundant hold on salt-master package
This commit is contained in:
@@ -23,11 +23,6 @@ sync_runners:
|
|||||||
- name: saltutil.sync_runners
|
- name: saltutil.sync_runners
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
hold_salt_master_package:
|
|
||||||
module.run:
|
|
||||||
- pkg.hold:
|
|
||||||
- name: salt-master
|
|
||||||
|
|
||||||
# prior to 2.4.30 this engine ran on the manager with salt-minion
|
# prior to 2.4.30 this engine ran on the manager with salt-minion
|
||||||
# this has changed to running with the salt-master in 2.4.30
|
# this has changed to running with the salt-master in 2.4.30
|
||||||
remove_engines_config:
|
remove_engines_config:
|
||||||
|
|||||||
@@ -58,12 +58,15 @@ start_minion_post_upgrade:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if INSTALLEDSALTVERSION|string == SALTVERSION|string %}
|
{% if INSTALLEDSALTVERSION|string == SALTVERSION|string %}
|
||||||
# only hold the package if it is already installed
|
|
||||||
hold_salt_packages:
|
|
||||||
pkg.held:
|
|
||||||
- pkgs:
|
|
||||||
{% for package in SALTPACKAGES %}
|
{% for package in SALTPACKAGES %}
|
||||||
- {{ package }}: {{SALTVERSION}}-0.*
|
# only hold the package if it is already installed
|
||||||
|
{% if salt['pkg.version'](package) %}
|
||||||
|
hold_{{ package }}_package:
|
||||||
|
pkg.held:
|
||||||
|
- name: {{ package }}
|
||||||
|
- version: {{SALTVERSION}}-0.*
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
remove_error_log_level_logfile:
|
remove_error_log_level_logfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user