Browse Source

apt: Add SaltStack upstream sources + gpg key.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 years ago
parent
commit
6faad655cd
4 changed files with 13 additions and 0 deletions
  1. 11 0
      apt/init.sls
  2. BIN
      apt/salt.gpg
  3. 1 0
      apt/salt.list.Debian.buster
  4. 1 0
      apt/salt.list.Debian.stretch

+ 11 - 0
apt/init.sls

@@ -21,6 +21,17 @@
     - require:
       - file: /etc/apt/trusted.gpg.d/ffho.gpg
 
+# Salt APT
+/etc/apt/trusted.gpg.d/salt.gpg:
+  file.managed:
+    - source: salt://apt/salt.gpg
+
+/etc/apt/sources.list.d/salt.list:
+  file.managed:
+    - source: salt://apt/salt.list.{{ grains.os }}.{{ grains.oscodename }}
+    - require:
+      - file: /etc/apt/trusted.gpg.d/salt.gpg
+
 
 # APT preferences
 /etc/apt/preferences.d/ffho:

BIN
apt/salt.gpg


+ 1 - 0
apt/salt.list.Debian.buster

@@ -0,0 +1 @@
+deb http://repo.saltstack.com/py3/debian/10/amd64/2019.2/ buster main

+ 1 - 0
apt/salt.list.Debian.stretch

@@ -0,0 +1 @@
+deb http://repo.saltstack.com/py3/debian/9/amd64/2019.2/ stretch main