Преглед изворни кода

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm пре 4 година
родитељ
комит
f95c494b1c
3 измењених фајлова са 14 додато и 7 уклоњено
  1. BIN
      burp/burp.gpg
  2. 4 0
      burp/burp.list.tmpl
  3. 10 7
      burp/init.sls

+ 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