瀏覽代碼

apt: Add SaltStack upstream sources + gpg key.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 年之前
父節點
當前提交
6faad655cd
共有 4 個文件被更改,包括 13 次插入0 次删除
  1. 11 0
      apt/init.sls
  2. 二進制
      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:

二進制
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