diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2020-12-27 21:44:09 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2020-12-27 21:44:09 +0100 |
commit | b8af5cdf274a60f364d34192d4f483f4f4800282 (patch) | |
tree | f5977d9a13259da488edfebab392884cee394c39 /gen | |
parent | 13d7de5dab25c830deacf335bb704aed0e2db3a7 (diff) | |
download | rules-sandbox-b8af5cdf274a60f364d34192d4f483f4f4800282.tar.gz rules-sandbox-b8af5cdf274a60f364d34192d4f483f4f4800282.tar.bz2 rules-sandbox-b8af5cdf274a60f364d34192d4f483f4f4800282.tar.xz rules-sandbox-b8af5cdf274a60f364d34192d4f483f4f4800282.zip |
Adding ansible and terraform configs.
Diffstat (limited to 'gen')
-rw-r--r-- | gen/platform/ansible/acme-1.tf | 1 | ||||
-rw-r--r-- | gen/platform/ansible/acme-2.tf | 1 | ||||
-rw-r--r-- | gen/platform/ansible/acme-3.tf | 1 | ||||
-rw-r--r-- | gen/platform/terraform/acme-1.tf | 26 | ||||
-rw-r--r-- | gen/platform/terraform/acme-2.tf | 26 | ||||
-rw-r--r-- | gen/platform/terraform/acme-3.tf | 26 |
6 files changed, 81 insertions, 0 deletions
diff --git a/gen/platform/ansible/acme-1.tf b/gen/platform/ansible/acme-1.tf new file mode 100644 index 0000000..686275d --- /dev/null +++ b/gen/platform/ansible/acme-1.tf @@ -0,0 +1 @@ +# Ansible diff --git a/gen/platform/ansible/acme-2.tf b/gen/platform/ansible/acme-2.tf new file mode 100644 index 0000000..686275d --- /dev/null +++ b/gen/platform/ansible/acme-2.tf @@ -0,0 +1 @@ +# Ansible diff --git a/gen/platform/ansible/acme-3.tf b/gen/platform/ansible/acme-3.tf new file mode 100644 index 0000000..686275d --- /dev/null +++ b/gen/platform/ansible/acme-3.tf @@ -0,0 +1 @@ +# Ansible diff --git a/gen/platform/terraform/acme-1.tf b/gen/platform/terraform/acme-1.tf new file mode 100644 index 0000000..d488fbc --- /dev/null +++ b/gen/platform/terraform/acme-1.tf @@ -0,0 +1,26 @@ +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}" +} + +resource "google_dns_record_set" "acme-1" { + name = "acme-1.${google_dns_managed_zone.machine.dns_name}" + managed_zone = google_dns_managed_zone.machine.name + type = "A" + ttl = 300 + + rrdatas = [scaleway_instance_ip.acme-1.public_ip] + + depends_on = [google_dns_managed_zone.ci] +} diff --git a/gen/platform/terraform/acme-2.tf b/gen/platform/terraform/acme-2.tf new file mode 100644 index 0000000..e791c61 --- /dev/null +++ b/gen/platform/terraform/acme-2.tf @@ -0,0 +1,26 @@ +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}" +} + +resource "google_dns_record_set" "acme-2" { + name = "acme-2.${google_dns_managed_zone.machine.dns_name}" + managed_zone = google_dns_managed_zone.machine.name + type = "A" + ttl = 300 + + rrdatas = [scaleway_instance_ip.acme-2.public_ip] + + depends_on = [google_dns_managed_zone.ci] +} diff --git a/gen/platform/terraform/acme-3.tf b/gen/platform/terraform/acme-3.tf new file mode 100644 index 0000000..13977bd --- /dev/null +++ b/gen/platform/terraform/acme-3.tf @@ -0,0 +1,26 @@ +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}" +} + +resource "google_dns_record_set" "acme-3" { + name = "acme-3.${google_dns_managed_zone.machine.dns_name}" + managed_zone = google_dns_managed_zone.machine.name + type = "A" + ttl = 300 + + rrdatas = [scaleway_instance_ip.acme-3.public_ip] + + depends_on = [google_dns_managed_zone.ci] +} |