浏览代码

Add sury php repository

Philipp Fromme 1 年之前
父节点
当前提交
74dbf64e12
共有 3 个文件被更改,包括 19 次插入0 次删除
  1. 14 0
      sury/init.sls
  2. 二进制
      sury/sury.gpg
  3. 5 0
      sury/sury.list.tmpl

+ 14 - 0
sury/init.sls

@@ -0,0 +1,14 @@
+#
+# sury php
+#
+
+/etc/apt/trusted.gpg.d/deb.sury.org-php.gpg:
+  file.managed:
+    - source: salt://sury/sury.gpg
+
+/etc/apt/sources.list.d/sury.php.list:
+  file.managed:
+    - source: salt://sury/sury.list.tmpl
+    - template: jinja
+    - require:
+      - file: /etc/apt/trusted.gpg.d/deb.sury.org-php.gpg

二进制
sury/sury.gpg


+ 5 - 0
sury/sury.list.tmpl

@@ -0,0 +1,5 @@
+#
+# sury php repository (Salt managed)
+#
+
+deb [signed-by=/etc/apt/trusted.gpg.d/deb.sury.org-php.gpg] https://packages.sury.org/php/ {{ grains.oscodename }} main