2021-09-27 12:08:32 +02:00
|
|
|
From bdb48ed82c755407bc413fa445e057a6da5f1e87 Mon Sep 17 00:00:00 2001
|
2018-07-30 13:52:13 +02:00
|
|
|
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
|
|
|
|
<psuarezhernandez@suse.com>
|
|
|
|
Date: Thu, 21 Jun 2018 11:57:57 +0100
|
|
|
|
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
|
2021-09-27 12:08:32 +02:00
|
|
|
index 2fdbe6526a..0eec27e628 100644
|
2018-07-30 13:52:13 +02:00
|
|
|
--- a/salt/grains/extra.py
|
|
|
|
+++ b/salt/grains/extra.py
|
2021-09-27 12:08:32 +02:00
|
|
|
@@ -66,3 +66,11 @@ def config():
|
2018-07-30 13:52:13 +02:00
|
|
|
log.warning("Bad syntax in grains file! Skipping.")
|
|
|
|
return {}
|
|
|
|
return {}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+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
|
|
|
+ }
|
|
|
|
--
|
2021-09-27 12:08:32 +02:00
|
|
|
2.33.0
|
2018-07-30 13:52:13 +02:00
|
|
|
|
|
|
|
|