Quellcode durchsuchen

grafana: Switch to new repo URL

Philipp Fromme vor 1 Jahr
Ursprung
Commit
3109dffb24
3 geänderte Dateien mit 57 neuen und 6 gelöschten Zeilen
  1. 41 0
      grafana/grafana.key
  2. 5 0
      grafana/grafana.list.tmpl
  3. 11 6
      grafana/init.sls

+ 41 - 0
grafana/grafana.key

@@ -0,0 +1,41 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQGNBGO4aiUBDAC82zo3vUyQH3yTCabQ7ZpospBg/xXBbJWbQNksIbEP/+I12CjB
+zac1QcMFd27MJlyXpsTqqSo1ZHOisNy0Tmyl/WlqMyoMeChg+LmIHLNbvAK0jPOX
+1Pt2OykXJWN9Ru+ZZ4uQNgdKO5nXS6CZtK+McfhRwwghp+vlZFJgqP6aGR2A4cZ7
+IJpUQIoT/8GY6Fdx5TStTJucVUXjSJ3VqafZe4c0WHrk5Yb0UptYPBj9brZkmC9F
+Uz6BLX6eO0HGLdwvYzoenlN1sD/2dclUtxoKYmfKDgpcG1V4vOClYPgOZ7g6jvwU
++nW39VGwR7yzbEAmGxVcd93QNUjTaZMfO3xJFm1UG5JwC6VJcd7Wp3hNHJle/y62
+lw0N2AATqJ7AV6PXKBPNebXvCB0LqkAiC/W//imeMCk9hfREmb5rhf1s83owpJaQ
+gScEtJYIVgOqgGoFE8wkCkHFG1slneLykmGK2xAJ2Rk63MIAE4hL9WKLV624LMid
+JqH3YIEA6pR+GlEAEQEAAbQmR3JhZmFuYSBMYWJzIDxlbmdpbmVlcmluZ0BncmFm
+YW5hLmNvbT6JAdQEEwEIAD4WIQQOIuuI454SJ3p3YK6eQ5sQLPPAxgUCY7hqJQIb
+AwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCeQ5sQLPPAxhXnDACu
+6rtTbZsbHYaotiQ757UX+Yu+hXTDBQe74ahEqKAYLg2JKzYNx2Q7UovvVLJ3JZQ4
+e2lezdj7NkeyuSuiq1C/A58fqRICqNh8vRCqOQ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PBMGXXJuWfN2UathyGuS6iZNCdIZMZgpOfuuk2ctFKeQHizM/hfUrguNGhvZX+
+xSbuq8M+/dx+c2Lse7NDP0Q8Pw9UaDHcW6gTTLizq/CWhFpOD2IH2ywxY3IrAvzG
+R4pDs+NodJgLCQPd1ez/lGk90mk/j17Yue2sD2fwJyqWqbHZJe8qgfvEtn+WPK33
+84JN9DgDkcq7ThoLxU0Q7U3SempJGT98Yg2RWMAPj51DqtZOIVdeKoR8lr1rk3Kv
+X7sojTBU4eWUrc0A3GwoqyCXz9xlXb8OLhTsFAlsQCLkgK7Rdt3sXyg3QkFQmGuk
+MnYQV0TkaAcXE2p03nk45vVrWoGJPzDfx68LBT6Ck/Ytw8/QHm4zqjZBLH5cMdax
+Fj8eP2CocfRC+Lqv0azQwyEVMkYSMKoFbhXmjiBZn9JxblndKnVbByA1/nMAa0Q7
+HTJC50jDJfpM9d1xQW/W5LBSQjd3czM6zlRXsliX
+=lSMJ
+-----END PGP PUBLIC KEY BLOCK-----

+ 5 - 0
grafana/grafana.list.tmpl

@@ -0,0 +1,5 @@
+#
+# grafana deb repo
+#
+
+deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main

+ 11 - 6
grafana/init.sls

@@ -4,18 +4,23 @@
 
 {% set node_config = salt['pillar.get']('nodes:' ~ grains['id']) %}
 
+
 grafana:
 # add Grafana Repo
-  pkgrepo.managed:
-    - humanname: Grafana Repo
-    - name: deb https://packages.grafana.com/oss/deb stable main
-    - file: /etc/apt/sources.list.d/grafana.list
-    - key_url: https://packages.grafana.com/gpg.key 
+  file.managed:
+    - names:
+      - /usr/share/keyrings/grafana.key:
+        - source: salt://grafana/grafana.key
+      - /etc/apt/sources.list.d/grafana.list:
+        - source: salt://grafana/grafana.list.tmpl
+        - template: jinja
+        - require:
+          - file: /usr/share/keyrings/grafana.key
 # install grafana
   pkg.installed:
     - name: grafana
     - require:
-      - pkgrepo: grafana
+      - file: /etc/apt/sources.list.d/grafana.list
 #      - pkgrepo: grafana-src
   service.running:
     - name: grafana-server