diff options
Diffstat (limited to 'durable_rules-test/gen')
-rw-r--r-- | durable_rules-test/gen/dns/acme-1.tf | 8 | ||||
-rw-r--r-- | durable_rules-test/gen/dns/acme-2.tf | 8 | ||||
-rw-r--r-- | durable_rules-test/gen/dns/acme-3.tf | 8 | ||||
-rw-r--r-- | durable_rules-test/gen/dns/inputs.tf | 3 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/ansible/acme-1.yml | 6 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/ansible/acme-2.yml | 6 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/ansible/acme-3.yml | 6 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/terraform/acme-1.tf | 15 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/terraform/acme-2.tf | 15 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/terraform/acme-3.tf | 15 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/terraform/main.tf | 7 | ||||
-rw-r--r-- | durable_rules-test/gen/platform/terraform/outputs.tf | 7 |
12 files changed, 104 insertions, 0 deletions
diff --git a/durable_rules-test/gen/dns/acme-1.tf b/durable_rules-test/gen/dns/acme-1.tf new file mode 100644 index 0000000..c1022ba --- /dev/null +++ b/durable_rules-test/gen/dns/acme-1.tf @@ -0,0 +1,8 @@ +resource "google_dns_record_set" "acme-1_machine_acme_corp" { + name = "acme-1.machine.acme.corp" + managed_zone = "None" + type = "A" + ttl = 300 + + rrdatas = [var.addresses.acme-1] +} diff --git a/durable_rules-test/gen/dns/acme-2.tf b/durable_rules-test/gen/dns/acme-2.tf new file mode 100644 index 0000000..4847052 --- /dev/null +++ b/durable_rules-test/gen/dns/acme-2.tf @@ -0,0 +1,8 @@ +resource "google_dns_record_set" "acme-2_machine_acme_corp" { + name = "acme-2.machine.acme.corp" + managed_zone = "None" + type = "A" + ttl = 300 + + rrdatas = [var.addresses.acme-2] +} diff --git a/durable_rules-test/gen/dns/acme-3.tf b/durable_rules-test/gen/dns/acme-3.tf new file mode 100644 index 0000000..c192dd3 --- /dev/null +++ b/durable_rules-test/gen/dns/acme-3.tf @@ -0,0 +1,8 @@ +resource "google_dns_record_set" "acme-3_machine_acme_corp" { + name = "acme-3.machine.acme.corp" + managed_zone = "None" + type = "A" + ttl = 300 + + rrdatas = [var.addresses.acme-3] +} diff --git a/durable_rules-test/gen/dns/inputs.tf b/durable_rules-test/gen/dns/inputs.tf new file mode 100644 index 0000000..615ea69 --- /dev/null +++ b/durable_rules-test/gen/dns/inputs.tf @@ -0,0 +1,3 @@ +variable "addresses" { + type = map(string) +} diff --git a/durable_rules-test/gen/platform/ansible/acme-1.yml b/durable_rules-test/gen/platform/ansible/acme-1.yml new file mode 100644 index 0000000..f5849b2 --- /dev/null +++ b/durable_rules-test/gen/platform/ansible/acme-1.yml @@ -0,0 +1,6 @@ +# Ansible +- hosts: + - acme-1 + tasks: + - import_role: + name: acme-platform diff --git a/durable_rules-test/gen/platform/ansible/acme-2.yml b/durable_rules-test/gen/platform/ansible/acme-2.yml new file mode 100644 index 0000000..755c214 --- /dev/null +++ b/durable_rules-test/gen/platform/ansible/acme-2.yml @@ -0,0 +1,6 @@ +# Ansible +- hosts: + - acme-2 + tasks: + - import_role: + name: acme-platform diff --git a/durable_rules-test/gen/platform/ansible/acme-3.yml b/durable_rules-test/gen/platform/ansible/acme-3.yml new file mode 100644 index 0000000..880a21f --- /dev/null +++ b/durable_rules-test/gen/platform/ansible/acme-3.yml @@ -0,0 +1,6 @@ +# Ansible +- hosts: + - acme-3 + tasks: + - import_role: + name: acme-platform diff --git a/durable_rules-test/gen/platform/terraform/acme-1.tf b/durable_rules-test/gen/platform/terraform/acme-1.tf new file mode 100644 index 0000000..8100533 --- /dev/null +++ b/durable_rules-test/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/durable_rules-test/gen/platform/terraform/acme-2.tf b/durable_rules-test/gen/platform/terraform/acme-2.tf new file mode 100644 index 0000000..07d5e8b --- /dev/null +++ b/durable_rules-test/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/durable_rules-test/gen/platform/terraform/acme-3.tf b/durable_rules-test/gen/platform/terraform/acme-3.tf new file mode 100644 index 0000000..a2246bc --- /dev/null +++ b/durable_rules-test/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}" +#} diff --git a/durable_rules-test/gen/platform/terraform/main.tf b/durable_rules-test/gen/platform/terraform/main.tf new file mode 100644 index 0000000..3f217ed --- /dev/null +++ b/durable_rules-test/gen/platform/terraform/main.tf @@ -0,0 +1,7 @@ +terraform { + required_providers { + scaleway = { + source = "scaleway/scaleway" + } + } +} diff --git a/durable_rules-test/gen/platform/terraform/outputs.tf b/durable_rules-test/gen/platform/terraform/outputs.tf new file mode 100644 index 0000000..87ccb0b --- /dev/null +++ b/durable_rules-test/gen/platform/terraform/outputs.tf @@ -0,0 +1,7 @@ +output "addresses" { + value = { + acme-2: scaleway_instance_ip.acme-2.address, + acme-3: scaleway_instance_ip.acme-3.address, + acme-1: scaleway_instance_ip.acme-1.address, + } +} |