fixing all repos with apt-cacher.lan
This commit is contained in:
18
hardware/raspberrypi/repo.sls
Normal file
18
hardware/raspberrypi/repo.sls
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user