Skip to content

Commit 405a6a6

Browse files
committed
Convert Alloy repository to Deb 822 format
1 parent f4b9d2b commit 405a6a6

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
alloy_grafana_signing_key: "https://apt.grafana.com/gpg.key"
3-
alloy_grafana_signing_key_fingerprint: "B53AE77BADB630A683046005963FA27710458545"
4-
alloy_grafana_repository: "https://apt.grafana.com stable main"
3+
alloy_grafana_repository: "https://apt.grafana.com"
54

65
alloy_extra_files: []

ansible/roles/alloy/tasks/main.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
---
22

3-
- name: Add apt signing key for Grafana repo
4-
ansible.builtin.apt_key:
5-
url: "{{ alloy_grafana_signing_key }}"
6-
state: present
7-
id: "{{ alloy_grafana_signing_key_fingerprint }}"
8-
keyring: "/etc/apt/keyrings/grafana.gpg"
9-
tags:
10-
- role::alloy
11-
12-
- name: Add Grafana apt repository to apt lists
13-
ansible.builtin.apt_repository:
14-
repo: "deb [signed-by=/etc/apt/keyrings/grafana.gpg] {{ alloy_grafana_repository }}"
15-
filename: grafana
3+
- name: Add Grafana apt repository with key
4+
deb822_repository:
5+
name: grafana
6+
types: deb
7+
uris: "{{ alloy_grafana_repository }}"
168
state: present
9+
suites: [stable]
10+
components: [main]
11+
signed_by: "{{ alloy_grafana_signing_key }}"
1712
tags:
1813
- role::alloy
1914

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
alloy_loki_endpoint: "https://loki-gateway.pydis.wtf"
3-
alloy_loki_user: "loki-user"
3+
alloy_loki_user: "loki-gateway-user"
44
alloy_loki_password: "{{ vault_alloy_loki_password }}"

0 commit comments

Comments
 (0)