Update secrets

This commit is contained in:
iFargle 2023-09-19 13:49:23 +09:00
parent 59eaa8b2d3
commit 38e88a9119
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
# Promtail Logging
# Set up the secret for the password:
sops.secrets.promtail-pass = {
sops.secrets."services/promtail" = {
owner = "promtail";
sopsFile = ../../../secrets/secrets.yaml;
restartUnits = [ "promtail.service" ];
@ -29,7 +29,7 @@
url = "https://loki.sysctl.io/loki/api/v1/push";
basic_auth = {
username = "loki-sa";
password_file = config.sops.secrets.promtail-pass.path;
password_file = config.sops.secrets."services/promtail".path;
};
}];
scrape_configs = [{

View file

@ -2,7 +2,7 @@
# Telegraf Monitoring
# Set up the secrets file for the token:
sops.secrets.telegraf-token = {
sops.secrets."services/telegraf" = {
owner = "telegraf";
sopsFile = ../../../secrets/secrets.yaml;
restartUnits = [ "telegraf.service" ];
@ -28,7 +28,7 @@
# Configure the package:
services.telegraf = {
enable = true;
environmentFiles = [ /run/secrets/telegraf-token ];
environmentFiles = [ /run/secrets/services/telegraf ];
extraConfig = {
outputs = {
influxdb_v2 = {