Skip to content

Commit

Permalink
Update Grafana repository to use explicit keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Jun 7, 2024
1 parent 2854936 commit 61e604d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/alloy/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
alloy_grafana_signing_key: "https://apt.grafana.com/gpg.key"
alloy_grafana_signing_key_fingerprint: "B53AE77BADB630A683046005963FA27710458545"
alloy_grafana_repository: "deb https://apt.grafana.com stable main"
alloy_grafana_repository: "https://apt.grafana.com stable main"

alloy_extra_files: []
4 changes: 2 additions & 2 deletions ansible/roles/alloy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
url: "{{ alloy_grafana_signing_key }}"
state: present
id: "{{ alloy_grafana_signing_key_fingerprint }}"
keyring: "/etc/apt/trusted.gpg.d/grafana.gpg"
keyring: "/etc/apt/keyrings/grafana.gpg"
tags:
- role::alloy

- name: Add Grafana apt repository to apt lists
ansible.builtin.apt_repository:
repo: "{{ alloy_grafana_repository }}"
repo: "deb [signed-by=/etc/apt/keyrings/grafana.gpg] {{ alloy_grafana_repository }}"
filename: grafana
state: present
tags:
Expand Down

0 comments on commit 61e604d

Please sign in to comment.