apt-cacher
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
#!jinja|yaml|gpg
|
||||
|
||||
{%-
|
||||
set cache_url = salt['pillar.get'](
|
||||
|
||||
@@ -13,6 +13,7 @@ set has_fan = salt['pillar.get'](
|
||||
%}
|
||||
|
||||
include:
|
||||
- .repo.raspbian
|
||||
{%- if 'node_exporter' in has_promexporter %}
|
||||
- .prometheus-exporter
|
||||
{%- endif %}
|
||||
|
||||
17
hardware/raspberrypi/repo/raspbian.sls
Normal file
17
hardware/raspberrypi/repo/raspbian.sls
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user