diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-11-02 19:34:10 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-11-02 19:34:10 +0100 |
commit | 88b018c4fef3ca2978d760960c6e90fb6d96686b (patch) | |
tree | c8f63d8b310b06cbea198df7e022f9e27cc567d0 | |
parent | 5fcf5d0154f4099fb254e3047c2b2a0cbec8ab13 (diff) | |
download | infra-88b018c4fef3ca2978d760960c6e90fb6d96686b.tar.gz infra-88b018c4fef3ca2978d760960c6e90fb6d96686b.tar.bz2 infra-88b018c4fef3ca2978d760960c6e90fb6d96686b.tar.xz infra-88b018c4fef3ca2978d760960c6e90fb6d96686b.zip |
Adding host unifi
-rw-r--r-- | ansible/group_vars/all/ipam.yml | 6 | ||||
-rw-r--r-- | ansible/inventory | 4 | ||||
-rw-r--r-- | terraform/dns/dn42.tf | 7 | ||||
-rw-r--r-- | terraform/ipam6/ipam6.tf | 36 |
4 files changed, 52 insertions, 1 deletions
diff --git a/ansible/group_vars/all/ipam.yml b/ansible/group_vars/all/ipam.yml index 0bd919b..0430803 100644 --- a/ansible/group_vars/all/ipam.yml +++ b/ansible/group_vars/all/ipam.yml @@ -4,6 +4,7 @@ # 56: ffff:ffff:ffff:ff00:: # 60: ffff:ffff:ffff:fff0:: # 64: ffff:ffff:ffff:ffff:: +# 80: ffff:ffff:ffff:ffff:ffff: ipam6: networks: bitraf_dn42: @@ -46,6 +47,11 @@ ipam6: lhn2pi: "fdb1:4242:3538:2008::ffff" conflatorio: "fdb1:4242:3538:2008:8042:32ff:fe0c:7161" danneri: "fdb1:4242:3538:2008:9422:d355:95b7:f170" + unifi: "fdb1:4242:3538:2008:5054:ff:fe4d:96c" + danneri_cluster: + range: "fdb1:4242:3538:2009::/64" + danneri_service: + range: "fdb1:4242:3538:2010::/64" k8s: range: "fdb1:4242:3538:3000::/52" diff --git a/ansible/inventory b/ansible/inventory index 845580f..cff290b 100644 --- a/ansible/inventory +++ b/ansible/inventory @@ -47,7 +47,9 @@ all: coregonus: ansible_host: 192.168.10.190 danneri: - ansible_host: 192.168.100.103 + ansible_host: danneri.dn42.trygvis.io + unifi: + ansible_host: unifi.dn42.trygvis.io node1: ansible_host: 9859f51e-1e3e-4c05-a826-b7fbe18d91be.pub.instances.scw.cloud diff --git a/terraform/dns/dn42.tf b/terraform/dns/dn42.tf index 9363b60..35bc26e 100644 --- a/terraform/dns/dn42.tf +++ b/terraform/dns/dn42.tf @@ -62,3 +62,10 @@ resource "linode_domain_record" "dn42-node2" { record_type = "AAAA" target = "fdb1:4242:3538:2003::ffff" } + +resource "linode_domain_record" "dn42-unifi" { + domain_id = linode_domain.root.id + name = "unifi.dn42" + record_type = "AAAA" + target = "fdb1:4242:3538:2008:5054:ff:fe4d:96c" +} diff --git a/terraform/ipam6/ipam6.tf b/terraform/ipam6/ipam6.tf index 62fd1d1..0cdd754 100644 --- a/terraform/ipam6/ipam6.tf +++ b/terraform/ipam6/ipam6.tf @@ -118,6 +118,38 @@ output "networks" { address : "fdb1:4242:3538:2008:9422:d355:95b7:f170" prefix : "128" } + unifi = { + address : "fdb1:4242:3538:2008:5054:ff:fe4d:96c" + prefix : "128" + } + } + } + danneri_cluster = { + range = "fdb1:4242:3538:3009::/112" + address = "fdb1:4242:3538:3009::" + prefix = "112" + hosts = { + } + } + danneri_service = { + range = "fdb1:4242:3538:300a::/100" + address = "fdb1:4242:3538:300a::" + prefix = "100" + hosts = { + } + } + k8s = { + range = "fdb1:4242:3538:3000::/52" + address = "fdb1:4242:3538:3000::" + prefix = "52" + hosts = { + } + } + danneri_service2 = { + range = "fdb1:4242:3538:300a::/112" + address = "fdb1:4242:3538:300a::" + prefix = "112" + hosts = { } } dn42 = { @@ -168,5 +200,9 @@ output "hosts" { address : "fdb1:4242:3538:2008:9422:d355:95b7:f170" prefix : "128" } + unifi = { + address : "fdb1:4242:3538:2008:5054:ff:fe4d:96c" + prefix : "128" + } } } |