Browse Source

apt: Use files instead of pkgrepo state.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
faf6934d02
3 changed files with 10 additions and 16 deletions
  1. BIN
      apt/ffho.gpg.Debian.stretch
  2. 2 0
      apt/ffho.list.Debian.stretch
  3. 8 16
      apt/init.sls

BIN
apt/ffho.gpg.Debian.stretch


+ 2 - 0
apt/ffho.list.Debian.stretch

@@ -0,0 +1,2 @@
+deb	http://apt.ffho.net stretch contrib non-free main
+deb-src	http://apt.ffho.net stretch contrib non-free main

+ 8 - 16
apt/init.sls

@@ -18,24 +18,16 @@ apt-transport-https:
 python-apt:
   pkg.installed
 
+# FFHO APT
+/etc/apt/trusted.gpg.d/ffho.gpg:
+  file.managed:
+    - source: salt://apt/ffho.gpg.{{ grains.os }}.{{ grains.oscodename }}
 
-ffho-repo:
-  pkgrepo.managed:
-    - comments:
-      - "# FFHO APT repo"
-    - human_name: FFHO repository
-    - name: deb http://apt.ffho.net/ {{ grains.oscodename }} main contrib non-free
-    - clean_file: True
-    - dist: {{ grains.oscodename }}
-    - file: /etc/apt/sources.list.d/ffho.list
-    - keyserver: keys.gnupg.net
-{% if grains.oscodename == "jessie" %}
-    - keyid: 40FC1CE2
-{% else %}
-    - keyid: EB88A4D5
-{% endif %}
+/etc/apt/sources.list.d/ffho.list:
+  file.managed:
+    - source: salt://apt/ffho.list.{{ grains.os }}.{{ grains.oscodename }}
     - require:
-      - pkg: python-apt
+      - file: /etc/apt/trusted.gpg.d/ffho.gpg
 
 
 # APT preferences