roles/logserver: fix incorrect sops password reference
This commit is contained in:
@@ -20,7 +20,9 @@ in
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
sops.secrets."prometheus/password" = { };
|
||||
sops.secrets."prometheus/password" = {
|
||||
sopsFile = ../secrets/log-01.yml;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgsUnstable; [
|
||||
loki
|
||||
@@ -120,7 +122,7 @@ in
|
||||
url = "http://log-01.tail755c5.ts.net:9090/api/v1/write";
|
||||
basicAuth = {
|
||||
username = "alloy";
|
||||
password_file = ''${config.sops.secrets."prometheus/alloy".path}'';
|
||||
password_file = ''${config.sops.secrets."prometheus/password".path}'';
|
||||
};
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user