--- /dev/null
+# Packages Frank Brehm
+# ---------------------
+
+#deb http://www.brehm-online.com/debian/{{ debian_release }} ./
+deb http://uhu8.uhu-banane.de/Debian/{{ debian_release }} ./
+deb-src http://uhu8.uhu-banane.de/Sources ./
--- /dev/null
+deb http://repo.saltstack.com/apt/debian/8/amd64/latest {{ debian_release }} main
--- /dev/null
+# deb http://{{ debian_mirror }}/debian jessie main
+
+deb http://{{ debian_mirror }}/debian {{ debian_release }} main contrib non-free
+deb-src http://{{ debian_mirror }}/debian {{ debian_release }} main contrib non-free
+
+deb http://security.debian.org/ {{ debian_release }}/updates main contrib non-free
+deb-src http://security.debian.org/ {{ debian_release }}/updates main contrib non-free
+
+# jessie-updates, previously known as 'volatile'
+deb http://{{ debian_mirror }}/debian {{ debian_release }}-updates main contrib non-free
+deb-src http://{{ debian_mirror }}/debian {{ debian_release }}-updates main contrib non-free
+
+# jessie-backports, previously on backports.debian.org
+deb http://{{ debian_mirror }}/debian/ {{ debian_release }}-backports main contrib non-free
+deb-src http://{{ debian_mirror }}/debian/ {{ debian_release }}-backports main contrib non-free
+
--- /dev/null
+{%- from "debian/apt/map.jinja" import debian_release with context -%}
+{%- from "debian/apt/map.jinja" import debian_mirror with context -%}
+
+
+/etc/apt/sources.list.d:
+ file.directory:
+ - clean: True
+
+/etc/apt/sources.list:
+ file.managed:
+ - user: root
+ - group: root
+ - mode: 644
+ - source: salt://debian/apt/files/sources.list
+ - template: jinja
+ - backup: minion
+ - defaults:
+ debian_release: {{ debian_release }}
+ debian_mirror: {{ debian_mirror }}
+
+/etc/apt/sources.list.d/salt.list:
+ file.managed:
+ - user: root
+ - group: root
+ - mode: 644
+ - source: salt://debian/apt/files/salt.list
+ - template: jinja
+ - backup: minion
+ - defaults:
+ debian_release: {{ debian_release }}
+ debian_mirror: {{ debian_mirror }}
+
+/etc/apt/sources.list.d/fbrehm.list:
+ file.managed:
+ - user: root
+ - group: root
+ - mode: 644
+ - source: salt://debian/apt/files/fbrehm.list
+ - template: jinja
+ - backup: minion
+ - defaults:
+ debian_release: {{ debian_release }}
+ debian_mirror: {{ debian_mirror }}
+
--- /dev/null
+{% if salt['grains.get']('osrelease')|int >= 8 %}
+ {% set debian_release = 'jessie' %}
+{% elif salt['grains.get']('osrelease')|int >= 7 %}
+ {% set debian_release = 'wheezy' %}
+{% endif %}
+
+{% if salt['grains.get']('fqdn') == 'ns2.uhu-banane.de' %}
+ {% set debian_mirror = 'ftp.us.debian.org' %}
+{% elif salt['grains.get']('fqdn') == 'ns3.uhu-banane.de' %}
+ {% set debian_mirror = 'ftp.plusline.de' %}
+{% else %}
+ {% set debian_mirror = 'ftp-stud.hs-esslingen.de' %}
+{% endif %}
--- /dev/null
+base:
+ 'ns2.uhu-banane.de':
+ - debian.apt
+# - basic.rsync
+# - basic.shells
+# - basic.editors
+# - basic.localization
+
+ 'ns3.uhu-banane.de':
+ - debian.apt