mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
chore: test basic auth with influx, but seems to conflict with internal auth
This commit is contained in:
parent
6e15d49cbc
commit
10a52642ad
5 changed files with 43 additions and 3 deletions
|
@ -43,6 +43,16 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
age.secrets.telegraf-influxdb-token = {
|
||||
rekeyFile = nodePath + "/secrets/telegraf-influxdb-token.age";
|
||||
# TODO generator.script = { pkgs, lib, decrypt, deps, ... }: let
|
||||
# TODO adminBasicAuth = (builtins.head deps).file;
|
||||
# TODO adminToken = (builtins.head deps).file; # TODO ..... filter by name?
|
||||
# TODO in ''
|
||||
# TODO echo " -> Provisioning influxdb token for [34mtelegraf[m on [32m${nodeName}[m at [33mhttps://${cfg.influxdb2.domain}[m" >&2
|
||||
# TODO ${decrypt} ${lib.escapeShellArg aba.file} \
|
||||
# TODO INFLUX_HOST=https://${aba.host}+${aba.name}:${PW}@${URL}
|
||||
# TODO | ${pkgs.influxdb2-cli}/bin/influx -niBC 12 ${lib.escapeShellArg host}"+"${lib.escapeShellArg name} \
|
||||
# TODO || die "Failure"
|
||||
# TODO '');
|
||||
mode = "440";
|
||||
group = "telegraf";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue