migrate infra to terranix
This commit is contained in:
parent
32c4eeb2f8
commit
de32fe0db0
16 changed files with 295 additions and 289 deletions
68
infra/web.nix
Normal file
68
infra/web.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ config, infra, ... }:
|
||||
{
|
||||
resource.hcloud_zone_rrset =
|
||||
let
|
||||
sourcehut_pages = {
|
||||
ipv4 = "46.23.81.157";
|
||||
ipv6 = "2a03:6000:1813:1337::157";
|
||||
};
|
||||
zone = config.resource.hcloud_zone.rpqt_fr "name";
|
||||
in
|
||||
{
|
||||
a = {
|
||||
inherit zone;
|
||||
name = "@";
|
||||
type = "A";
|
||||
records = [ { value = sourcehut_pages.ipv4; } ];
|
||||
};
|
||||
|
||||
aaaa = {
|
||||
inherit zone;
|
||||
name = "@";
|
||||
type = "AAAA";
|
||||
records = [ { value = sourcehut_pages.ipv6; } ];
|
||||
};
|
||||
|
||||
cloud_a = {
|
||||
inherit zone;
|
||||
name = "cloud";
|
||||
type = "A";
|
||||
records = [ { value = infra.machines.verbena.ipv4; } ];
|
||||
};
|
||||
|
||||
cloud_aaaa = {
|
||||
inherit zone;
|
||||
name = "cloud";
|
||||
type = "AAAA";
|
||||
records = [ { value = infra.machines.verbena.ipv6; } ];
|
||||
};
|
||||
|
||||
git_turifer_dev_a = {
|
||||
zone = config.resource.hcloud_zone.turifer_dev "name";
|
||||
name = "git";
|
||||
type = "A";
|
||||
records = [ { value = infra.machines.verbena.ipv4; } ];
|
||||
};
|
||||
|
||||
git_turifer_dev_aaaa = {
|
||||
zone = config.resource.hcloud_zone.turifer_dev "name";
|
||||
name = "git";
|
||||
type = "AAAA";
|
||||
records = [ { value = infra.machines.verbena.ipv6; } ];
|
||||
};
|
||||
|
||||
buildbot_turifer_dev_a = {
|
||||
zone = config.resource.hcloud_zone.turifer_dev "name";
|
||||
name = "buildbot";
|
||||
type = "A";
|
||||
records = [ { value = infra.machines.verbena.ipv4; } ];
|
||||
};
|
||||
|
||||
buildbot_turifer_dev_aaaa = {
|
||||
zone = config.resource.hcloud_zone.turifer_dev "name";
|
||||
name = "buildbot";
|
||||
type = "AAAA";
|
||||
records = [ { value = infra.machines.verbena.ipv6; } ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue