repos galore!

This commit is contained in:
do
2020-10-22 20:57:17 +02:00
parent 9531cf694c
commit bfade616aa
9 changed files with 50 additions and 18 deletions

View File

@@ -0,0 +1,3 @@
include:
- .repo

View File

@@ -0,0 +1,15 @@
#!jinja|yaml|gpg
{%-
set cache_url = salt['pillar.get'](
'services:apt-cache',
default=''
)
%}
repo_armbian:
pkgrepo.managed:
- name: 'deb http://{{ cache_url }}apt.armbian.com {{ grains['oscodename'] }} main {{ grains['oscodename'] }}-utils {{ grains['oscodename'] }}-desktop'
- dist: {{ grains['oscodename'] }}
- file: /etc/apt/sources.list.d/armbian.list
- clean_file: True

View File

@@ -3,3 +3,11 @@ include:
{% if grains['hardware'] == 'RaspberryPi' %}
- .raspberrypi
{% endif %}
{% if grains['hardware'] == 'Pine64' %}
- .pine64
{% endif %}
{% if grains['hardware'] == 'Espressobin' %}
- .espressobin
{% endif %}

3
hardware/pine64/init.sls Normal file
View File

@@ -0,0 +1,3 @@
include:
- .repo

15
hardware/pine64/repo.sls Normal file
View File

@@ -0,0 +1,15 @@
#!jinja|yaml|gpg
{%-
set cache_url = salt['pillar.get'](
'services:apt-cache',
default=''
)
%}
repo_armbian:
pkgrepo.managed:
- name: 'deb http://{{ cache_url }}mirrors.dotsrc.org/armbian-apt {{ grains['oscodename'] }} main {{ grains['oscodename'] }}-utils {{ grains['oscodename'] }}-desktop'
- dist: {{ grains['oscodename'] }}
- file: /etc/apt/sources.list.d/armbian.list
- clean_file: True

View File

@@ -13,7 +13,7 @@ set has_fan = salt['pillar.get'](
%}
include:
- .repo.raspbian
- .repo
{%- if 'node_exporter' in has_promexporter %}
- .prometheus-exporter
{%- endif %}

View File

@@ -8,7 +8,7 @@
)
%}
repo_maketank:
repo_raspi:
pkgrepo.managed:
- name: deb http://{{ cache_url }}archive.raspberrypi.org/debian/ {{ grains['oscodename'] }} main
- dist: {{ grains['oscodename'] }}