diff --git a/salt/common.sls b/salt/common.sls new file mode 100644 index 0000000..6b11af2 --- /dev/null +++ b/salt/common.sls @@ -0,0 +1,2 @@ +include: + - profile.zypper diff --git a/salt/profile/zypper.sls b/salt/profile/zypper.sls new file mode 100644 index 0000000..fd36b93 --- /dev/null +++ b/salt/profile/zypper.sls @@ -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 %} diff --git a/salt/top.sls b/salt/top.sls new file mode 100644 index 0000000..133c807 --- /dev/null +++ b/salt/top.sls @@ -0,0 +1,3 @@ +base: + '*': + - common