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

View file

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