repos galore!
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
---
|
---
|
||||||
{%-
|
|
||||||
set cache_url = salt['pillar.get'](
|
|
||||||
'services:apt-cache',
|
|
||||||
default=''
|
|
||||||
)
|
|
||||||
%}
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- haproxy
|
- haproxy
|
||||||
@@ -27,7 +21,7 @@ openhab2-pkgs:
|
|||||||
|
|
||||||
repo_openhab2:
|
repo_openhab2:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- name: deb http://{{ cache_url }}dl.bintray.com/openhab/apt-repo2 stable main
|
- name: deb https://dl.bintray.com/openhab/apt-repo2 stable main
|
||||||
- file: /etc/apt/sources.list.d/openhab2.list
|
- file: /etc/apt/sources.list.d/openhab2.list
|
||||||
- key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab'
|
- key_url: 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab'
|
||||||
- clean_file: True
|
- clean_file: True
|
||||||
|
|||||||
@@ -9,29 +9,23 @@
|
|||||||
|
|
||||||
repo_debian:
|
repo_debian:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- name: deb http://{{ cache_url }}deb.debian.org/debian {{ grains['oscodename'] }} main contrib non-free
|
- name: 'deb http://{{ cache_url }}deb.debian.org/debian {{ grains['oscodename'] }} main contrib non-free'
|
||||||
- dist: {{ grains['oscodename'] }}
|
- dist: {{ grains['oscodename'] }}
|
||||||
- file: /etc/apt/sources.list.d/debian.list
|
- file: /etc/apt/sources.list.d/debian.list
|
||||||
- clean_file: True
|
- clean_file: True
|
||||||
|
|
||||||
repo_debian-backports:
|
repo_debian-backports:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- name: deb http://{{ cache_url}}deb.debian.org/debian {{ grains['oscodename'] }}-backports main contrib non-free
|
- name: 'deb http://{{ cache_url}}deb.debian.org/debian {{ grains['oscodename'] }}-backports main contrib non-free'
|
||||||
- dist: {{ grains['oscodename'] }}
|
|
||||||
- file: /etc/apt/sources.list.d/debian-backports.list
|
- file: /etc/apt/sources.list.d/debian-backports.list
|
||||||
- clean_file: True
|
- clean_file: True
|
||||||
|
|
||||||
repo_debian-security:
|
repo_debian-security:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- name: deb http://{{ cache_url}}deb.debian.org/debian {{ grains['oscodename'] }}/updates main contrib non-free
|
- name: 'deb http://{{ cache_url}}security.debian.org/debian-security {{ grains['oscodename'] }}/updates main contrib non-free'
|
||||||
- dist: {{ grains['oscodename'] }}
|
|
||||||
- file: /etc/apt/sources.list.d/debian-security.list
|
- file: /etc/apt/sources.list.d/debian-security.list
|
||||||
- clean_file: True
|
- clean_file: True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#apt-update:
|
#apt-update:
|
||||||
# cmd.run:
|
# cmd.run:
|
||||||
# - name: apt update -y
|
# - name: apt update -y
|
||||||
|
|||||||
3
hardware/espressobin/init.sls
Normal file
3
hardware/espressobin/init.sls
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
include:
|
||||||
|
- .repo
|
||||||
15
hardware/espressobin/repo.sls
Normal file
15
hardware/espressobin/repo.sls
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!jinja|yaml|gpg
|
||||||
|
|
||||||
|
{%-
|
||||||
|
set cache_url = salt['pillar.get'](
|
||||||
|
'services:apt-cache',
|
||||||
|
default=''
|
||||||
|
)
|
||||||
|
%}
|
||||||
|
|
||||||
|
repo_armbian:
|
||||||
|
pkgrepo.managed:
|
||||||
|
- name: 'deb http://{{ cache_url }}apt.armbian.com {{ grains['oscodename'] }} main {{ grains['oscodename'] }}-utils {{ grains['oscodename'] }}-desktop'
|
||||||
|
- dist: {{ grains['oscodename'] }}
|
||||||
|
- file: /etc/apt/sources.list.d/armbian.list
|
||||||
|
- clean_file: True
|
||||||
@@ -3,3 +3,11 @@ include:
|
|||||||
{% if grains['hardware'] == 'RaspberryPi' %}
|
{% if grains['hardware'] == 'RaspberryPi' %}
|
||||||
- .raspberrypi
|
- .raspberrypi
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if grains['hardware'] == 'Pine64' %}
|
||||||
|
- .pine64
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if grains['hardware'] == 'Espressobin' %}
|
||||||
|
- .espressobin
|
||||||
|
{% endif %}
|
||||||
3
hardware/pine64/init.sls
Normal file
3
hardware/pine64/init.sls
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
include:
|
||||||
|
- .repo
|
||||||
15
hardware/pine64/repo.sls
Normal file
15
hardware/pine64/repo.sls
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!jinja|yaml|gpg
|
||||||
|
|
||||||
|
{%-
|
||||||
|
set cache_url = salt['pillar.get'](
|
||||||
|
'services:apt-cache',
|
||||||
|
default=''
|
||||||
|
)
|
||||||
|
%}
|
||||||
|
|
||||||
|
repo_armbian:
|
||||||
|
pkgrepo.managed:
|
||||||
|
- name: 'deb http://{{ cache_url }}mirrors.dotsrc.org/armbian-apt {{ grains['oscodename'] }} main {{ grains['oscodename'] }}-utils {{ grains['oscodename'] }}-desktop'
|
||||||
|
- dist: {{ grains['oscodename'] }}
|
||||||
|
- file: /etc/apt/sources.list.d/armbian.list
|
||||||
|
- clean_file: True
|
||||||
@@ -13,7 +13,7 @@ set has_fan = salt['pillar.get'](
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- .repo.raspbian
|
- .repo
|
||||||
{%- if 'node_exporter' in has_promexporter %}
|
{%- if 'node_exporter' in has_promexporter %}
|
||||||
- .prometheus-exporter
|
- .prometheus-exporter
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
)
|
)
|
||||||
%}
|
%}
|
||||||
|
|
||||||
repo_maketank:
|
repo_raspi:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- name: deb http://{{ cache_url }}archive.raspberrypi.org/debian/ {{ grains['oscodename'] }} main
|
- name: deb http://{{ cache_url }}archive.raspberrypi.org/debian/ {{ grains['oscodename'] }} main
|
||||||
- dist: {{ grains['oscodename'] }}
|
- dist: {{ grains['oscodename'] }}
|
||||||
Reference in New Issue
Block a user