apt-cacher

This commit is contained in:
do
2020-10-22 19:31:45 +02:00
parent db755165cb
commit 63006f7913
4 changed files with 33 additions and 4 deletions

View File

@@ -1,6 +1,13 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
{%-
set cache_url = salt['pillar.get'](
'services:apt-cache',
default=''
)
%}
include:
- haproxy
- systemd.units
@@ -20,7 +27,7 @@ openhab2-pkgs:
repo_openhab2:
pkgrepo.managed:
- name: deb https://dl.bintray.com/openhab/apt-repo2 stable main
- name: deb https://{{ cache_url }}dl.bintray.com/openhab/apt-repo2 stable main
#- dist: {{ grains['oscodename'] }}
- file: /etc/apt/sources.list.d/openhab2.list
- key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab'