summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-24 18:03:15 +0100
committerGeorg Pfuetzenreuter2023-01-24 18:03:15 +0100
commit4863396938c7c638517cbefc3a2773c9eb29bc69 (patch)
treef3219168fe977cfc2b27b844232eefa89edb88c9
parent2698d18625246773601855c5be1d1abebc706e8a (diff)
downloadsalt-4863396938c7c638517cbefc3a2773c9eb29bc69.tar.gz
salt-4863396938c7c638517cbefc3a2773c9eb29bc69.tar.bz2
salt-4863396938c7c638517cbefc3a2773c9eb29bc69.zip
Split to OS specific common pillar
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
-rw-r--r--pillar/common/init.sls (renamed from pillar/common.sls)6
-rw-r--r--pillar/common/suse.sls3
2 files changed, 4 insertions, 5 deletions
diff --git a/pillar/common.sls b/pillar/common/init.sls
index d423f73..7665aa6 100644
--- a/pillar/common.sls
+++ b/pillar/common/init.sls
@@ -1,12 +1,8 @@
include:
- role.salt.common
- role.salt.minion
+ - common.{{ grains['os'] | lower }}
managed_header_pound: |
### This file is managed via https://git.com.de/LibertaCasa/salt
### Manual changes will be overwritten
-
-{%- if grains['os'] == 'SUSE' %}
-zypper:
- refreshdb_force: False
-{%- endif %}
diff --git a/pillar/common/suse.sls b/pillar/common/suse.sls
new file mode 100644
index 0000000..4105c37
--- /dev/null
+++ b/pillar/common/suse.sls
@@ -0,0 +1,3 @@
+zypper:
+ refreshdb_force: False
+