colmena initial implementation for sandbox and monitor
All checks were successful
Hello World / test (push) Successful in 4s
All checks were successful
Hello World / test (push) Successful in 4s
This commit is contained in:
parent
a90630ecb6
commit
5feb74d56d
40 changed files with 27629 additions and 141 deletions
35
machines/monitor/influxdb.nix
Normal file
35
machines/monitor/influxdb.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
influxdbPassword = config.sops.secrets."influxdb/password".path;
|
||||
influxdbToken = config.sops.secrets."influxdb/token".path;
|
||||
in {
|
||||
sops.secrets."influxdb/password" = {
|
||||
sopsFile = ../../secrets/secrets.yaml;
|
||||
owner = "influxdb2";
|
||||
};
|
||||
sops.secrets."influxdb/token" = {
|
||||
sopsFile = ../../secrets/secrets.yaml;
|
||||
owner = "influxdb2";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [8086];
|
||||
|
||||
services.influxdb2 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
};
|
||||
provision = {
|
||||
enable = true;
|
||||
initialSetup = {
|
||||
username = "plasmagoat";
|
||||
passwordFile = influxdbPassword;
|
||||
tokenFile = influxdbToken;
|
||||
organization = "procopius";
|
||||
bucket = "proxmox";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue