apt-cacher

This commit is contained in:
do
2020-10-22 19:53:18 +02:00
parent 63006f7913
commit 9531cf694c
4 changed files with 20 additions and 5 deletions

View File

@@ -27,8 +27,7 @@ openhab2-pkgs:
repo_openhab2:
pkgrepo.managed:
- name: deb https://{{ cache_url }}dl.bintray.com/openhab/apt-repo2 stable main
#- dist: {{ grains['oscodename'] }}
- name: deb http://{{ cache_url }}dl.bintray.com/openhab/apt-repo2 stable main
- file: /etc/apt/sources.list.d/openhab2.list
- key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab'
- clean_file: True

View File

@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
#!jinja|yaml|gpg
{%-
set cache_url = salt['pillar.get'](

View File

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

View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
{%- set cache_url = salt['pillar.get'](
'services:apt-cache',
default=''
)
%}
repo_maketank:
pkgrepo.managed:
- name: deb http://{{ cache_url }}archive.raspberrypi.org/debian/ {{ grains['oscodename'] }} main
- dist: {{ grains['oscodename'] }}
- file: /etc/apt/sources.list.d/raspi.list
- clean_file: True