mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #13855 from Security-Onion-Solutions/issue/204
fix HELD for debian families
This commit is contained in:
@@ -5,7 +5,12 @@
|
|||||||
|
|
||||||
{% import_yaml 'versionlock/defaults.yaml' as VERSIONLOCKDEFAULTS %}
|
{% import_yaml 'versionlock/defaults.yaml' as VERSIONLOCKDEFAULTS %}
|
||||||
{% set VERSIONLOCKMERGED = salt['pillar.get']('versionlock', VERSIONLOCKDEFAULTS.versionlock, merge=True) %}
|
{% set VERSIONLOCKMERGED = salt['pillar.get']('versionlock', VERSIONLOCKDEFAULTS.versionlock, merge=True) %}
|
||||||
{% set HELD = salt['pkg.list_holds']() %}
|
|
||||||
|
{% if grains.os_family == 'RedHat' %}
|
||||||
|
{% set HELD = salt['pkg.list_holds']() %}
|
||||||
|
{% else %}
|
||||||
|
{% set HELD = salt['pkg.get_selections'](state='hold')['hold'] %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# these are packages held / versionlock in other states #}
|
{# these are packages held / versionlock in other states #}
|
||||||
{% set PACKAGES_HELD_IN_OTHER_STATES = [
|
{% set PACKAGES_HELD_IN_OTHER_STATES = [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
versionlock:
|
versionlock:
|
||||||
hold:
|
hold:
|
||||||
description: List of packages to prevent from upgrading. To reduce the frequency of required reboots, add 'kernel' to this list.
|
description: List of packages to prevent from upgrading. To reduce the frequency of required reboots, add 'kernel' to this list for RedHat based OS families. For Debian, please see the documentation.
|
||||||
global: True
|
global: True
|
||||||
forcedType: "[]string"
|
forcedType: "[]string"
|
||||||
multiline: True
|
multiline: True
|
||||||
|
|||||||
Reference in New Issue
Block a user