From 4863396938c7c638517cbefc3a2773c9eb29bc69 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Tue, 24 Jan 2023 18:03:15 +0100 Subject: Split to OS specific common pillar Signed-off-by: Georg Pfuetzenreuter --- pillar/common.sls | 12 ------------ pillar/common/init.sls | 8 ++++++++ pillar/common/suse.sls | 3 +++ 3 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 pillar/common.sls create mode 100644 pillar/common/init.sls create mode 100644 pillar/common/suse.sls diff --git a/pillar/common.sls b/pillar/common.sls deleted file mode 100644 index d423f73..0000000 --- a/pillar/common.sls +++ /dev/null @@ -1,12 +0,0 @@ -include: - - role.salt.common - - role.salt.minion - -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/init.sls b/pillar/common/init.sls new file mode 100644 index 0000000..7665aa6 --- /dev/null +++ b/pillar/common/init.sls @@ -0,0 +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 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 + -- cgit v1.2.3