mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: use declarative influxdb token for grafana
This commit is contained in:
parent
36e3348b37
commit
0ed8f2041d
2 changed files with 13 additions and 1 deletions
|
@ -23,11 +23,23 @@ in {
|
|||
};
|
||||
|
||||
age.secrets.grafana-influxdb-token = {
|
||||
rekeyFile = config.node.secretsDir + "/grafana-influxdb-token.age";
|
||||
generator.script = "alnum";
|
||||
generator.tags = ["influxdb"];
|
||||
mode = "440";
|
||||
group = "grafana";
|
||||
};
|
||||
|
||||
nodes.ward-influxdb.services.influxdb2.provision.ensureApiTokens = [
|
||||
{
|
||||
name = "grafana servers:telegraf (${config.node.name})";
|
||||
org = "servers";
|
||||
user = "admin";
|
||||
readBuckets = ["telegraf"];
|
||||
writeBuckets = ["telegraf"];
|
||||
tokenFile = config.age.secrets.grafana-influxdb-token.path;
|
||||
}
|
||||
];
|
||||
|
||||
nodes.sentinel = {
|
||||
age.secrets.loki-basic-auth-hashes.generator.dependencies = [
|
||||
config.age.secrets.grafana-loki-basic-auth-password
|
||||
|
|
BIN
secrets/generated/ward-grafana/grafana-influxdb-token.age
Normal file
BIN
secrets/generated/ward-grafana/grafana-influxdb-token.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue