From 1911481101e15463c8aecbdc03a6ce5b63b0d68f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 1 Jan 2021 23:13:14 +0100 Subject: Generating DNS too. --- out/phase-1.yaml | 184 +++++++++++++++++++++++-------------------------------- 1 file changed, 78 insertions(+), 106 deletions(-) (limited to 'out') diff --git a/out/phase-1.yaml b/out/phase-1.yaml index 0b8d48b..2d7bbed 100644 --- a/out/phase-1.yaml +++ b/out/phase-1.yaml @@ -20,25 +20,16 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-production" name: "db" - machineRole: "mdb" - image: "mongodb" - tag: "3.2" + machineRole: "pdb" + image: "postgresql" + tag: "13" --- type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-ci" - name: "app" - machineRole: "4tune-web" - image: "4tune-web" - tag: "development" ---- -type: "io.trygvis.rules.dba.Container" -data: - cluster: - name: "acme-production" name: "db" machineRole: "mdb" image: "mongodb" @@ -47,11 +38,11 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-ci" name: "app" - machineRole: "statera" - image: "statera" - tag: "master" + machineRole: "4tune-api" + image: "4tune-api" + tag: "development" --- type: "io.trygvis.rules.dba.Container" data: @@ -63,22 +54,13 @@ data: tag: "master" --- type: "io.trygvis.rules.dba.Container" -data: - cluster: - name: "acme-ci" - name: "app" - machineRole: "4tune-api" - image: "4tune-api" - tag: "development" ---- -type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-production" - name: "db" - machineRole: "pdb" - image: "postgresql" - tag: "13" + name: "app" + machineRole: "statera" + image: "statera" + tag: "master" --- type: "io.trygvis.rules.dba.Container" data: @@ -117,130 +99,120 @@ data: tag: "13" --- type: "io.trygvis.rules.dba.Container" +data: + cluster: + name: "acme-production" + name: "db" + machineRole: "mdb" + image: "mongodb" + tag: "3.2" +--- +type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-ci" name: "app" - machineRole: "statera-console" - image: "statera-console" + machineRole: "4tune-web" + image: "4tune-web" tag: "development" --- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "app.machine.acme.org" - type: "AAAA" ---- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "app.machine.acme.org" - type: "A" ---- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "app.machine.acme.org" - type: "A" ---- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "app.machine.acme.org" - type: "A" ---- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "db.machine.acme.org" - type: "A" ---- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "app.machine.acme.org" - type: "A" ---- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.dba.Container" data: - fqdn: "db.machine.acme.org" - type: "A" + cluster: + name: "acme-ci" + name: "app" + machineRole: "statera-console" + image: "statera-console" + tag: "development" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "app.machine.acme.org" + fqdn: "acme-3.machine.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "db.machine.acme.org" - type: "AAAA" ---- -type: "io.trygvis.rules.dns.DnsEntry" -data: - fqdn: "db.machine.acme.org" + fqdn: "acme-2.machine.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "app.machine.acme.org" + fqdn: "acme-2.machine.acme.com" type: "AAAA" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "db.machine.acme.org" + fqdn: "acme-1.machine.acme.com" type: "AAAA" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "db.machine.acme.org" + fqdn: "acme-3.machine.acme.com" type: "AAAA" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "db.machine.acme.org" + fqdn: "acme-1.machine.acme.com" type: "A" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.dns.DnsEntryTerraformExpression" data: - fqdn: "app.machine.acme.org" - type: "AAAA" + entry: + fqdn: "acme-3.machine.acme.com" + type: "A" + key: "acme-3" + expression: "scaleway_instance_ip.acme-3.address" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.dns.DnsEntryTerraformExpression" data: - fqdn: "app.machine.acme.org" - type: "AAAA" + entry: + fqdn: "acme-2.machine.acme.com" + type: "A" + key: "acme-2" + expression: "scaleway_instance_ip.acme-2.address" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.dns.DnsEntryTerraformExpression" data: - fqdn: "app.machine.acme.org" - type: "AAAA" + entry: + fqdn: "acme-1.machine.acme.com" + type: "A" + key: "acme-1" + expression: "scaleway_instance_ip.acme-1.address" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.engine.KeyValue" data: - fqdn: "app.machine.acme.org" - type: "AAAA" + key: "rm-gen" + value: null --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.machine.Machine" data: - fqdn: "app.machine.acme.org" - type: "A" + name: "acme-2" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.machine.Machine" data: - fqdn: "db.machine.acme.org" - type: "AAAA" + name: "acme-3" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.machine.Machine" data: - fqdn: "app.machine.acme.org" - type: "A" + name: "acme-1" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: - fqdn: "app.machine.acme.org" - type: "AAAA" + machine: + name: "acme-2" + key: "acme-2" + fqdn: "acme-2.machine.acme.com" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: - fqdn: "app.machine.acme.org" - type: "A" + machine: + name: "acme-1" + key: "acme-1" + fqdn: "acme-1.machine.acme.com" --- -type: "io.trygvis.rules.dns.DnsEntry" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: - fqdn: "app.machine.acme.org" - type: "AAAA" + machine: + name: "acme-3" + key: "acme-3" + fqdn: "acme-3.machine.acme.com" -- cgit v1.2.3