diff options
Diffstat (limited to 'out')
-rw-r--r-- | out/phase-1.yaml | 325 | ||||
-rw-r--r-- | out/vpn0.yaml (renamed from out/vs0.yaml) | 58 |
2 files changed, 227 insertions, 156 deletions
diff --git a/out/phase-1.yaml b/out/phase-1.yaml index 48a6365..7347ca8 100644 --- a/out/phase-1.yaml +++ b/out/phase-1.yaml @@ -1,47 +1,137 @@ --- -type: "io.trygvis.rules.dba.Container" +type: "io.trygvis.rules.acme.AcmeMyApp" data: - cluster: - name: "acme-ci" - name: "app" - machineRole: "statera-console" - image: "statera-console" - tag: "development" + environment: "ci" + dockerTag: "development" +--- +type: "io.trygvis.rules.acme.AcmeMyApp" +data: + environment: "production" + dockerTag: "master" +--- +type: "io.trygvis.rules.acme.AcmeServer" +data: + machine: + name: "acme-2" + fqdn: "acme-2.machine.acme.com" +--- +type: "io.trygvis.rules.acme.AcmeServer" +data: + machine: + name: "acme-1" + fqdn: "acme-1.machine.acme.com" +--- +type: "io.trygvis.rules.acme.AcmeServer" +data: + machine: + name: "acme-3" + fqdn: "acme-3.machine.acme.com" +--- +type: "io.trygvis.rules.acme.AcmeServer" +data: + machine: + name: "acme-2" + fqdn: "acme-2.machine.acme.com" +--- +type: "io.trygvis.rules.acme.AcmeServer" +data: + machine: + name: "acme-3" + fqdn: "acme-3.machine.acme.com" +--- +type: "io.trygvis.rules.acme.AcmeServer" +data: + machine: + name: "acme-1" + fqdn: "acme-1.machine.acme.com" +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "acme-1" + net: "vpn0" + publicName: "acme-1.machine.acme.com" + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "acme-2" + net: "vpn0" + publicName: "acme-2.machine.acme.com" + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "acme-3" + net: "vpn0" + publicName: "acme-3.machine.acme.com" + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "ws-1" + net: "vpn0" + publicName: null + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "ws-2" + net: "vpn0" + publicName: null + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgNet" +data: + name: "vpn0" + domain: "vpn.acme.com" +--- +type: "io.trygvis.rules.dba.Cluster" +data: + name: "acme-ci" +--- +type: "io.trygvis.rules.dba.Cluster" +data: + name: "acme-production" --- type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-production" name: "app" - machineRole: "4tune-web" - image: "4tune-web" - tag: "development" + machineRole: "4tune-api" + image: "4tune-api" + tag: "master" --- type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-production" name: "app" - machineRole: "statera" - image: "statera" + machineRole: "4tune-web" + image: "4tune-web" tag: "master" --- type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-ci" name: "app" - machineRole: "statera-console" - image: "statera-console" - tag: "master" + machineRole: "4tune-web" + image: "4tune-web" + tag: "development" --- type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-ci" name: "app" - machineRole: "statera" - image: "statera" + machineRole: "statera-console" + image: "statera-console" tag: "development" --- type: "io.trygvis.rules.dba.Container" @@ -49,8 +139,8 @@ data: cluster: name: "acme-production" name: "app" - machineRole: "4tune-api" - image: "4tune-api" + machineRole: "statera-console" + image: "statera-console" tag: "master" --- type: "io.trygvis.rules.dba.Container" @@ -65,20 +155,20 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-ci" name: "app" - machineRole: "4tune-web" - image: "4tune-web" - tag: "master" + machineRole: "statera" + image: "statera" + tag: "development" --- type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" - name: "db" - machineRole: "pdb" - image: "postgresql" - tag: "13" + name: "acme-production" + name: "app" + machineRole: "statera" + image: "statera" + tag: "master" --- type: "io.trygvis.rules.dba.Container" data: @@ -92,7 +182,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-production" name: "db" machineRole: "mdb" image: "mongodb" @@ -101,72 +191,30 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-ci" name: "db" machineRole: "mdb" image: "mongodb" tag: "3.2" --- -type: "io.trygvis.rules.acme.AcmeMyApp" -data: - environment: "ci" - dockerTag: "development" ---- -type: "io.trygvis.rules.acme.AcmeMyApp" -data: - environment: "production" - dockerTag: "master" ---- -type: "io.trygvis.rules.acme.WgHost" -data: - name: "acme-1" - machine: - name: "acme-1" - fqdn: "acme-1.machine.acme.com" - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null ---- -type: "io.trygvis.rules.acme.WgHost" -data: - name: "acme-2" - machine: - name: "acme-2" - fqdn: "acme-2.machine.acme.com" - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null ---- -type: "io.trygvis.rules.acme.WgHost" +type: "io.trygvis.rules.dba.Container" data: - name: "acme-3" - machine: - name: "acme-3" - fqdn: "acme-3.machine.acme.com" - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null + cluster: + name: "acme-ci" + name: "db" + machineRole: "pdb" + image: "postgresql" + tag: "13" --- -type: "io.trygvis.rules.acme.WgHost" +type: "io.trygvis.rules.dns.DnsEntry" data: - name: "ws-1" - machine: null - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null + fqdn: "ws-1.vpn.acme.com" + type: "A" --- -type: "io.trygvis.rules.acme.WgHost" +type: "io.trygvis.rules.dns.DnsEntry" data: - name: "ws-2" - machine: null - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null + fqdn: "acme-2.machine.acme.com" + type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: @@ -175,66 +223,57 @@ data: --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "ws-1.vpn.acme.com" + fqdn: "acme-3.machine.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-2.vpn.acme.com" + fqdn: "acme-1.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-3.vpn.acme.com" + fqdn: "acme-2.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-1.vpn.acme.com" + fqdn: "acme-1.machine.acme.com" type: "A" --- -type: "io.trygvis.rules.dba.Cluster" -data: - name: "acme-ci" ---- -type: "io.trygvis.rules.dba.Cluster" +type: "io.trygvis.rules.dns.DnsEntry" data: - name: "acme-production" + fqdn: "acme-3.vpn.acme.com" + type: "A" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.dns.DnsEntryTerraformExpression" data: - machine: - name: "acme-1" + entry: fqdn: "acme-1.machine.acme.com" + type: "A" key: "acme-1" + expression: "scaleway_instance_ip.acme-1.address" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.dns.DnsEntryTerraformExpression" data: - machine: - name: "acme-2" + entry: fqdn: "acme-2.machine.acme.com" + type: "A" key: "acme-2" + expression: "scaleway_instance_ip.acme-2.address" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.dns.DnsEntryTerraformExpression" data: - machine: - name: "acme-3" + entry: fqdn: "acme-3.machine.acme.com" + type: "A" key: "acme-3" + expression: "scaleway_instance_ip.acme-3.address" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" -data: - machine: - name: "ws-1" - fqdn: null - key: "ws-1" ---- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.engine.KeyValue" data: - machine: - name: "ws-2" - fqdn: null - key: "ws-2" + key: "rm-gen" + value: null --- type: "io.trygvis.rules.machine.Machine" data: @@ -261,30 +300,58 @@ data: name: "ws-2" fqdn: null --- -type: "io.trygvis.rules.acme.AcmeServer" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: machine: - name: "acme-3" - fqdn: "acme-3.machine.acme.com" + name: "acme-1" + fqdn: "acme-1.machine.acme.com" + key: "acme-1" --- -type: "io.trygvis.rules.acme.AcmeServer" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: machine: name: "acme-1" fqdn: "acme-1.machine.acme.com" + key: "acme-1" --- -type: "io.trygvis.rules.acme.AcmeServer" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: machine: name: "acme-2" fqdn: "acme-2.machine.acme.com" + key: "acme-2" --- -type: "io.trygvis.rules.engine.KeyValue" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: - key: "rm-gen" - value: null + machine: + name: "acme-2" + fqdn: "acme-2.machine.acme.com" + key: "acme-2" --- -type: "io.trygvis.rules.acme.WgNet" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: - name: "vs0" - domain: "vpn.acme.com" + machine: + name: "acme-3" + fqdn: "acme-3.machine.acme.com" + key: "acme-3" +--- +type: "io.trygvis.rules.terraform.ScalewayMachine" +data: + machine: + name: "acme-3" + fqdn: "acme-3.machine.acme.com" + key: "acme-3" +--- +type: "io.trygvis.rules.terraform.ScalewayMachine" +data: + machine: + name: "ws-1" + fqdn: null + key: "ws-1" +--- +type: "io.trygvis.rules.terraform.ScalewayMachine" +data: + machine: + name: "ws-2" + fqdn: null + key: "ws-2" diff --git a/out/vs0.yaml b/out/vpn0.yaml index 2ca168b..038ebd6 100644 --- a/out/vs0.yaml +++ b/out/vpn0.yaml @@ -2,41 +2,31 @@ type: "io.trygvis.rules.acme.WgHost" data: name: "acme-1" - machine: - name: "acme-1" - fqdn: "acme-1.machine.acme.com" - net: "vs0" - publicName: null + net: "vpn0" + publicName: "acme-1.machine.acme.com" netToNetIp: null networkIp: null --- type: "io.trygvis.rules.acme.WgHost" data: name: "acme-2" - machine: - name: "acme-2" - fqdn: "acme-2.machine.acme.com" - net: "vs0" - publicName: null + net: "vpn0" + publicName: "acme-2.machine.acme.com" netToNetIp: null networkIp: null --- type: "io.trygvis.rules.acme.WgHost" data: name: "acme-3" - machine: - name: "acme-3" - fqdn: "acme-3.machine.acme.com" - net: "vs0" - publicName: null + net: "vpn0" + publicName: "acme-3.machine.acme.com" netToNetIp: null networkIp: null --- type: "io.trygvis.rules.acme.WgHost" data: name: "ws-1" - machine: null - net: "vs0" + net: "vpn0" publicName: null netToNetIp: null networkIp: null @@ -44,12 +34,26 @@ data: type: "io.trygvis.rules.acme.WgHost" data: name: "ws-2" - machine: null - net: "vs0" + net: "vpn0" publicName: null netToNetIp: null networkIp: null --- +type: "io.trygvis.rules.acme.WgNet" +data: + name: "vpn0" + domain: "vpn.acme.com" +--- +type: "io.trygvis.rules.dns.DnsEntry" +data: + fqdn: "ws-1.vpn.acme.com" + type: "A" +--- +type: "io.trygvis.rules.dns.DnsEntry" +data: + fqdn: "acme-2.machine.acme.com" + type: "A" +--- type: "io.trygvis.rules.dns.DnsEntry" data: fqdn: "ws-2.vpn.acme.com" @@ -57,7 +61,12 @@ data: --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "ws-1.vpn.acme.com" + fqdn: "acme-3.machine.acme.com" + type: "A" +--- +type: "io.trygvis.rules.dns.DnsEntry" +data: + fqdn: "acme-1.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" @@ -67,12 +76,12 @@ data: --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-3.vpn.acme.com" + fqdn: "acme-1.machine.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-1.vpn.acme.com" + fqdn: "acme-3.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.machine.Machine" @@ -99,8 +108,3 @@ type: "io.trygvis.rules.machine.Machine" data: name: "ws-2" fqdn: null ---- -type: "io.trygvis.rules.acme.WgNet" -data: - name: "vs0" - domain: "vpn.acme.com" |