diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-02-15 06:27:47 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-02-19 05:19:37 +0100 |
commit | db8cb61d4a13fa861440379f4788a6524d880467 (patch) | |
tree | 043f798a9ecb149285e06aaa3e46f2850d5c6a00 /terraform.nix | |
parent | 59b9bf48851f85de8844d888de6c82dcfb4df5fa (diff) |
init code.nomath.org
Diffstat (limited to 'terraform.nix')
-rw-r--r-- | terraform.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/terraform.nix b/terraform.nix index 70d4104..e3f1b0d 100644 --- a/terraform.nix +++ b/terraform.nix @@ -2,6 +2,13 @@ let inherit (import <fysiweb>) fysilib lib; in fysilib.terraform.eval (import <fysiweb/terraform.nix> { + terraform = { + #required_providers = { + # hetznerdns = { + # source = "timohirt/hetznerdns"; + # }; + #}; + }; resource = { hcloud_server.system1 = { name = "system1"; @@ -12,5 +19,23 @@ fysilib.terraform.eval (import <fysiweb/terraform.nix> { "fysiweb-cli" ]; }; + hcloud_floating_ip.primary_ipv4 = { + type = "ipv4"; + server_id = "\${hcloud_server.system1.id}"; + }; + hcloud_floating_ip.primary_ipv6 = { + type = "ipv6"; + server_id = "\${hcloud_server.system1.id}"; + }; + #hetznerdns_zone."nomath_org" = { + # name = "nomath.org"; + # ttl = 60; + #}; + #hetznerdns_record."all_nomath_org" = { + # zone_id = "\${hetznerdns_zone.nomath_org.id}"; + # name = "@"; + # value = "\${hcloud_server.system1.ipv4_address}"; + # type = "A"; + #}; }; }) |