38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
# -*- coding: utf-8 -*-
|
|
# vim: ft=yaml
|
|
---
|
|
|
|
{%- set cache_url = salt['pillar.get'](
|
|
'services:apt-cache',
|
|
default=''
|
|
)
|
|
%}
|
|
|
|
repo_raspi:
|
|
pkgrepo.managed:
|
|
- name: deb http://{{ cache_url }}raspbian.raspberrypi.org/raspbian/ {{ grains['oscodename'] }} main contrib firmware rpi
|
|
- dist: {{ grains['oscodename'] }}
|
|
- file: /etc/apt/sources.list.d/raspi.list
|
|
- clean_file: True
|
|
- key_url: http://archive.raspberrypi.org/debian/raspberrypi.gpg.key
|
|
|
|
repo_archive_raspi:
|
|
pkgrepo.managed:
|
|
- name: deb http://{{ cache_url }}archive.raspberrypi.org/debian/ {{ grains['oscodename'] }} main
|
|
- dist: {{ grains['oscodename'] }}
|
|
- file: /etc/apt/sources.list.d/raspi_archive.list
|
|
- clean_file: True
|
|
- key_url: https://archive.raspbian.org/raspbian.public.key
|
|
|
|
{% if grains.get('os_flavor') == 'OSMC' %}
|
|
|
|
repo_archive_osmc:
|
|
pkgrepo.managed:
|
|
- name: deb http://{{ cache_url }}apt.osmc.tv {{ grains['oscodename'] }} main
|
|
- dist: {{ grains['oscodename'] }}
|
|
- file: /etc/apt/sources.list.d/osmc.list
|
|
- clean_file: True
|
|
- key_url: https://ftp.fau.de/osmc/osmc/apt/osmc_repository.gpg
|
|
|
|
{% endif %}
|