diff options
author | Georg Pfuetzenreuter | 2023-01-15 09:45:04 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-01-15 09:45:04 +0100 |
commit | 2b40942a442a0f15b2d75289d4977a114cd81e72 (patch) | |
tree | f82a2d89b523fd9f323297f4b67384b9a722aa77 /salt/profile/zypp | |
parent | f1a4b0514c148d9b5477f5c2b11938445e4438b1 (diff) | |
download | salt-2b40942a442a0f15b2d75289d4977a114cd81e72.tar.gz salt-2b40942a442a0f15b2d75289d4977a114cd81e72.tar.bz2 salt-2b40942a442a0f15b2d75289d4977a114cd81e72.zip |
Import profiles/roles from salt-devel
- + renaming baseline to common
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/profile/zypp')
-rw-r--r-- | salt/profile/zypp/files/etc/zypp/zypp.conf.j2 | 8 | ||||
-rw-r--r-- | salt/profile/zypp/init.sls | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/salt/profile/zypp/files/etc/zypp/zypp.conf.j2 b/salt/profile/zypp/files/etc/zypp/zypp.conf.j2 new file mode 100644 index 0000000..610b4c5 --- /dev/null +++ b/salt/profile/zypp/files/etc/zypp/zypp.conf.j2 @@ -0,0 +1,8 @@ +{%- set header = salt['pillar.get']('managed_header_pound') -%} +{{ header }} + +[main] +repo.add.probe = true +solver.onlyRequires = true +multiversion = provides:multiversion(kernel) +multiversion.kernels = latest,latest-1,running diff --git a/salt/profile/zypp/init.sls b/salt/profile/zypp/init.sls new file mode 100644 index 0000000..a964ccd --- /dev/null +++ b/salt/profile/zypp/init.sls @@ -0,0 +1,13 @@ +zypp_files: + file.managed: + - user: root + - mode: '0644' + - template: jinja + - names: + - /etc/zypp/zypp.conf: + - source: salt:///{{ slspath }}/files/etc/zypp/zypp.conf.j2 + +rpm_key_libertacasa: + cmd.run: + - name: 'rpm --import https://pepper.lysergic.dev/pub/libertacasa-obs-pubkey' + - unless: 'rpm -q gpg-pubkey-f8722274-5f7a4d7b' |