apt-cacher
This commit is contained in:
@@ -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