Add common repositories
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
4e8692d673
commit
b59687324d
2
salt/common.sls
Normal file
2
salt/common.sls
Normal file
@ -0,0 +1,2 @@
|
||||
include:
|
||||
- profile.zypper
|
22
salt/profile/zypper.sls
Normal file
22
salt/profile/zypper.sls
Normal 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
3
salt/top.sls
Normal file
@ -0,0 +1,3 @@
|
||||
base:
|
||||
'*':
|
||||
- common
|
Loading…
x
Reference in New Issue
Block a user