Explorar o código

burp: Write sources.list files manually and install GPG key as file.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm %!s(int64=4) %!d(string=hai) anos
pai
achega
f95c494b1c
Modificáronse 3 ficheiros con 14 adicións e 7 borrados
  1. BIN=BIN
      burp/burp.gpg
  2. 4 0
      burp/burp.list.tmpl
  3. 10 7
      burp/init.sls

BIN=BIN
burp/burp.gpg


+ 4 - 0
burp/burp.list.tmpl

@@ -0,0 +1,4 @@
+#
+# burp repository (Salt managed)
+#
+deb	http://ziirish.info/repos/debian/{{ grains.oscodename }} zi-latest main

+ 10 - 7
burp/init.sls

@@ -5,10 +5,13 @@
 include:
  - certs
 
-burp-repo:
-  pkgrepo.managed:
-    - name: deb http://ziirish.info/repos/debian/{{ grains.oscodename }}/ zi-latest main
-    - clean_file: True
-    - file: /etc/apt/sources.list.d/burp.list
-    - keyserver: keys.gnupg.net
-    - keyid: A1718780C58CD6E3
+/etc/apt/trusted.gpg.d/burp.gpg:
+  file.managed:
+    - source: salt://burp/burp.gpg
+
+/etc/apt/sources.list.d/burp.list:
+  file.managed:
+    - source: salt://burp/burp.list.tmpl
+    - template: jinja
+    - require:
+      - file: /etc/apt/trusted.gpg.d/burp.gpg