Add common repositories

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2025-04-29 10:31:15 +02:00
parent 4e8692d673
commit b59687324d
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
3 changed files with 27 additions and 0 deletions

2
salt/common.sls Normal file
View File

@ -0,0 +1,2 @@
include:
- profile.zypper

22
salt/profile/zypper.sls Normal file
View File

@ -0,0 +1,22 @@
/etc/zypp/vars.d/mirror:
file.managed:
- contents:
- download.opensuse.org
{%- for project, priority in {
'home:crameleon:media': 80,
'home:crameleon:misc': 110,
'home:crameleon:vim': 80,
}.items()
%}
{{ project }}:
pkgrepo.managed:
- baseurl: https://$mirror/repositories/{{ ':/'.join(project.split(':')) }}/openSUSE_Tumbleweed
- enabled: true
- priority: {{ priority }}
- gpgcheck: true
- refresh: true
{%- endfor %}

3
salt/top.sls Normal file
View File

@ -0,0 +1,3 @@
base:
'*':
- common