2023-01-09 13:52:13 +01:00
|
|
|
From cb31b475c2ac02e06b167f30fc36fe49f7f5d4f6 Mon Sep 17 00:00:00 2001
|
2022-01-27 16:38:33 +01:00
|
|
|
From: Alexander Graul <agraul@suse.com>
|
|
|
|
Date: Tue, 18 Jan 2022 12:59:43 +0100
|
2018-07-30 13:52:13 +02:00
|
|
|
Subject: [PATCH] Add custom SUSE capabilities as Grains
|
|
|
|
|
2021-09-27 12:08:32 +02:00
|
|
|
Add new custom SUSE capability for saltutil state module
|
2018-07-30 13:52:13 +02:00
|
|
|
---
|
2021-09-27 12:08:32 +02:00
|
|
|
salt/grains/extra.py | 8 ++++++++
|
|
|
|
1 file changed, 8 insertions(+)
|
2018-07-30 13:52:13 +02:00
|
|
|
|
|
|
|
diff --git a/salt/grains/extra.py b/salt/grains/extra.py
|
2022-01-27 16:38:33 +01:00
|
|
|
index 300052f1ee..f2504dbf19 100644
|
2018-07-30 13:52:13 +02:00
|
|
|
--- a/salt/grains/extra.py
|
|
|
|
+++ b/salt/grains/extra.py
|
2022-01-27 16:38:33 +01:00
|
|
|
@@ -96,3 +96,11 @@ def uefi():
|
|
|
|
def transactional():
|
|
|
|
"""Determine if the system is transactional."""
|
|
|
|
return {"transactional": bool(salt.utils.path.which("transactional-update"))}
|
2018-07-30 13:52:13 +02:00
|
|
|
+
|
|
|
|
+
|
|
|
|
+def suse_backported_capabilities():
|
|
|
|
+ return {
|
|
|
|
+ '__suse_reserved_pkg_all_versions_support': True,
|
2021-09-27 12:08:32 +02:00
|
|
|
+ '__suse_reserved_pkg_patches_support': True,
|
|
|
|
+ '__suse_reserved_saltutil_states_support': True
|
2018-07-30 13:52:13 +02:00
|
|
|
+ }
|
|
|
|
--
|
2023-01-09 13:52:13 +01:00
|
|
|
2.37.3
|
2018-07-30 13:52:13 +02:00
|
|
|
|
|
|
|
|