From 1911481101e15463c8aecbdc03a6ce5b63b0d68f Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Fri, 1 Jan 2021 23:13:14 +0100
Subject: Generating DNS too.

---
 gen/dns/acme-1.tf                |  8 ++++++++
 gen/dns/acme-2.tf                |  8 ++++++++
 gen/dns/acme-3.tf                |  8 ++++++++
 gen/platform/terraform/acme-1.tf | 15 +++++++++++++++
 gen/platform/terraform/acme-2.tf | 15 +++++++++++++++
 gen/platform/terraform/acme-3.tf | 15 +++++++++++++++
 6 files changed, 69 insertions(+)
 create mode 100644 gen/dns/acme-1.tf
 create mode 100644 gen/dns/acme-2.tf
 create mode 100644 gen/dns/acme-3.tf
 create mode 100644 gen/platform/terraform/acme-1.tf
 create mode 100644 gen/platform/terraform/acme-2.tf
 create mode 100644 gen/platform/terraform/acme-3.tf

(limited to 'gen')

diff --git a/gen/dns/acme-1.tf b/gen/dns/acme-1.tf
new file mode 100644
index 0000000..2252410
--- /dev/null
+++ b/gen/dns/acme-1.tf
@@ -0,0 +1,8 @@
+resource "google_dns_record_set" "acme-1" {
+  name         = "acme-1.machine.acme.com"
+  managed_zone = ""
+  type         = "A"
+  ttl          = 300
+
+  rrdatas      = [var.addresses.scaleway_instance_ip.acme-1.address]
+}
diff --git a/gen/dns/acme-2.tf b/gen/dns/acme-2.tf
new file mode 100644
index 0000000..04b79a2
--- /dev/null
+++ b/gen/dns/acme-2.tf
@@ -0,0 +1,8 @@
+resource "google_dns_record_set" "acme-2" {
+  name         = "acme-2.machine.acme.com"
+  managed_zone = ""
+  type         = "A"
+  ttl          = 300
+
+  rrdatas      = [var.addresses.scaleway_instance_ip.acme-2.address]
+}
diff --git a/gen/dns/acme-3.tf b/gen/dns/acme-3.tf
new file mode 100644
index 0000000..57d9f45
--- /dev/null
+++ b/gen/dns/acme-3.tf
@@ -0,0 +1,8 @@
+resource "google_dns_record_set" "acme-3" {
+  name         = "acme-3.machine.acme.com"
+  managed_zone = ""
+  type         = "A"
+  ttl          = 300
+
+  rrdatas      = [var.addresses.scaleway_instance_ip.acme-3.address]
+}
diff --git a/gen/platform/terraform/acme-1.tf b/gen/platform/terraform/acme-1.tf
new file mode 100644
index 0000000..8100533
--- /dev/null
+++ b/gen/platform/terraform/acme-1.tf
@@ -0,0 +1,15 @@
+resource "scaleway_instance_server" "acme-1" {
+  name = "acme-1"
+  type = "DEV1-S"
+  image = "b3042271-d2b1-4f87-b407-aedd3bbd1663"
+  ip_id = scaleway_instance_ip.acme-1.id
+  enable_dynamic_ip = false
+  enable_ipv6 = true
+}
+
+resource "scaleway_instance_ip" "acme-1" {}
+
+#resource "scaleway_instance_ip_reverse_dns" "acme-1" {
+#  ip_id   = scaleway_instance_ip.acme-1.id
+#  reverse = "acme-1.${google_dns_managed_zone.machine.dns_name}"
+#}
diff --git a/gen/platform/terraform/acme-2.tf b/gen/platform/terraform/acme-2.tf
new file mode 100644
index 0000000..07d5e8b
--- /dev/null
+++ b/gen/platform/terraform/acme-2.tf
@@ -0,0 +1,15 @@
+resource "scaleway_instance_server" "acme-2" {
+  name = "acme-1"
+  type = "DEV1-S"
+  image = "b3042271-d2b1-4f87-b407-aedd3bbd1663"
+  ip_id = scaleway_instance_ip.acme-2.id
+  enable_dynamic_ip = false
+  enable_ipv6 = true
+}
+
+resource "scaleway_instance_ip" "acme-2" {}
+
+#resource "scaleway_instance_ip_reverse_dns" "acme-2" {
+#  ip_id   = scaleway_instance_ip.acme-2.id
+#  reverse = "acme-2.${google_dns_managed_zone.machine.dns_name}"
+#}
diff --git a/gen/platform/terraform/acme-3.tf b/gen/platform/terraform/acme-3.tf
new file mode 100644
index 0000000..a2246bc
--- /dev/null
+++ b/gen/platform/terraform/acme-3.tf
@@ -0,0 +1,15 @@
+resource "scaleway_instance_server" "acme-3" {
+  name = "acme-1"
+  type = "DEV1-S"
+  image = "b3042271-d2b1-4f87-b407-aedd3bbd1663"
+  ip_id = scaleway_instance_ip.acme-3.id
+  enable_dynamic_ip = false
+  enable_ipv6 = true
+}
+
+resource "scaleway_instance_ip" "acme-3" {}
+
+#resource "scaleway_instance_ip_reverse_dns" "acme-3" {
+#  ip_id   = scaleway_instance_ip.acme-3.id
+#  reverse = "acme-3.${google_dns_managed_zone.machine.dns_name}"
+#}
-- 
cgit v1.2.3