2023-06-15 23:07:14 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
config',
|
|
|
|
elib,
|
2024-04-06 16:15:47 +02:00
|
|
|
tflib,
|
2024-03-02 22:05:30 +01:00
|
|
|
vars,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(elib)
|
|
|
|
nomadJob
|
|
|
|
;
|
2024-04-06 16:15:47 +02:00
|
|
|
inherit
|
|
|
|
(tflib)
|
|
|
|
tf
|
|
|
|
;
|
2024-03-02 22:05:30 +01:00
|
|
|
in {
|
2024-04-06 16:15:47 +02:00
|
|
|
imports = [
|
|
|
|
(elib.buildNixNGSystem {
|
|
|
|
name = "ingressBlowhole";
|
2024-04-06 16:40:33 +02:00
|
|
|
hosts = [
|
|
|
|
"blowhole.hosts.in.redalder.org"
|
|
|
|
];
|
2024-04-06 16:15:47 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-06-15 23:07:14 +02:00
|
|
|
resource."nomad_job"."ingress" = nomadJob {
|
|
|
|
jobspec = ./job.hcl;
|
2023-06-29 18:59:38 +02:00
|
|
|
|
2023-06-15 23:07:14 +02:00
|
|
|
vars = {
|
2024-04-06 16:40:33 +02:00
|
|
|
flake_ref = "unused";
|
|
|
|
flake_sha = "unused";
|
2024-04-06 16:15:47 +02:00
|
|
|
store_path = tf "data.external.nixng-system-ingressBlowhole.result.out";
|
2023-06-15 23:07:14 +02:00
|
|
|
upstreams = "\${file(\"${./upstreams.conf}\")}";
|
2023-09-03 18:03:08 +02:00
|
|
|
jellyfin = "\${file(\"${./jellyfin.conf}\")}";
|
|
|
|
hass = "\${file(\"${./hass.conf}\")}";
|
2023-06-15 23:07:14 +02:00
|
|
|
};
|
2024-04-06 16:15:47 +02:00
|
|
|
|
|
|
|
depends_on = [
|
|
|
|
"terraform_data.nixng-system-ingressBlowhole-copy"
|
|
|
|
];
|
2023-06-15 23:07:14 +02:00
|
|
|
};
|
|
|
|
}
|