From 2672477f5e2aaadcab9762c8fc694269be193231 Mon Sep 17 00:00:00 2001 From: Rasmus Wejlgaard Date: Tue, 28 Apr 2026 16:38:21 +0100 Subject: [PATCH] fix linting --- ansible/inventory/host_vars/london-a.yml | 2 +- ansible/roles/alloy/defaults/main.yml | 2 +- ansible/roles/alloy/templates/alloy.config.alloy.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/inventory/host_vars/london-a.yml b/ansible/inventory/host_vars/london-a.yml index 093a339..46defa6 100644 --- a/ansible/inventory/host_vars/london-a.yml +++ b/ansible/inventory/host_vars/london-a.yml @@ -14,7 +14,7 @@ zfs_pools: # 0 12 * * sun zpool scrub zroot zfs_scrub_schedule: "0 12 * * 0" -loki_push_url: "http://localhost:3100/loki/api/v1/push" +alloy_loki_url: "http://localhost:3100/loki/api/v1/push" # --- Services enabled in rc.conf --- diff --git a/ansible/roles/alloy/defaults/main.yml b/ansible/roles/alloy/defaults/main.yml index f4b6e30..c651fd7 100644 --- a/ansible/roles/alloy/defaults/main.yml +++ b/ansible/roles/alloy/defaults/main.yml @@ -1,4 +1,4 @@ --- # Used for Alpine binary download only; Debian uses the Grafana apt repo. alloy_version: "1.5.1" -loki_push_url: "http://{{ hostvars['london-a']['ansible_host'] }}:3100/loki/api/v1/push" +alloy_loki_url: "http://{{ hostvars['london-a']['ansible_host'] }}:3100/loki/api/v1/push" diff --git a/ansible/roles/alloy/templates/alloy.config.alloy.j2 b/ansible/roles/alloy/templates/alloy.config.alloy.j2 index 2457d19..2d64f3e 100644 --- a/ansible/roles/alloy/templates/alloy.config.alloy.j2 +++ b/ansible/roles/alloy/templates/alloy.config.alloy.j2 @@ -90,6 +90,6 @@ loki.source.file "apps" { loki.write "default" { endpoint { - url = "{{ loki_push_url }}" + url = "{{ alloy_loki_url }}" } }