diff options
Diffstat (limited to 'out')
-rw-r--r-- | out/phase-1.yaml | 322 | ||||
-rw-r--r-- | out/vs0.yaml | 54 |
2 files changed, 188 insertions, 188 deletions
diff --git a/out/phase-1.yaml b/out/phase-1.yaml index c8dfa11..48a6365 100644 --- a/out/phase-1.yaml +++ b/out/phase-1.yaml @@ -1,113 +1,12 @@ --- -type: "io.trygvis.rules.acme.AcmeMyApp" -data: - environment: "production" - dockerTag: "master" ---- -type: "io.trygvis.rules.acme.AcmeMyApp" -data: - environment: "ci" - dockerTag: "development" ---- -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-1" - fqdn: "acme-1.machine.acme.com" ---- -type: "io.trygvis.rules.acme.WgHost" -data: - name: "acme-3" - machine: - name: "acme-3" - fqdn: "acme-3.machine.acme.com" - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null ---- -type: "io.trygvis.rules.acme.WgHost" -data: - name: "ws-2" - machine: null - net: "vs0" - publicName: null - netToNetIp: null - networkIp: null ---- -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: "ws-1" - machine: null - 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.WgNet" -data: - name: "vs0" - domain: "vpn.acme.com" ---- -type: "io.trygvis.rules.dba.Cluster" -data: - name: "acme-production" ---- -type: "io.trygvis.rules.dba.Cluster" -data: - name: "acme-ci" ---- -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-production" - name: "db" - machineRole: "pdb" - image: "postgresql" - tag: "13" + name: "acme-ci" + name: "app" + machineRole: "statera-console" + image: "statera-console" + tag: "development" --- type: "io.trygvis.rules.dba.Container" data: @@ -140,27 +39,36 @@ type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-ci" - name: "db" - machineRole: "pdb" - image: "postgresql" - tag: "13" + name: "app" + machineRole: "statera" + image: "statera" + tag: "development" --- type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-production" name: "app" - machineRole: "4tune-web" - image: "4tune-web" + machineRole: "4tune-api" + image: "4tune-api" tag: "master" --- type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + 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: "app" + machineRole: "4tune-web" + image: "4tune-web" tag: "master" --- type: "io.trygvis.rules.dba.Container" @@ -168,40 +76,101 @@ data: cluster: name: "acme-ci" 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: "statera-console" - image: "statera-console" - tag: "development" + name: "acme-production" + name: "db" + machineRole: "pdb" + image: "postgresql" + tag: "13" --- type: "io.trygvis.rules.dba.Container" data: cluster: name: "acme-ci" - name: "app" - machineRole: "statera" - image: "statera" - tag: "development" + name: "db" + machineRole: "mdb" + image: "mongodb" + tag: "3.2" --- type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" - name: "app" - machineRole: "4tune-api" - image: "4tune-api" - tag: "development" + name: "acme-production" + 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" +data: + name: "acme-3" + machine: + name: "acme-3" + fqdn: "acme-3.machine.acme.com" + net: "vs0" + publicName: null + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "ws-1" + machine: null + net: "vs0" + publicName: null + netToNetIp: null + networkIp: null +--- +type: "io.trygvis.rules.acme.WgHost" +data: + name: "ws-2" + machine: null + net: "vs0" + publicName: null + netToNetIp: null + networkIp: null --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-1.vpn.acme.com" + fqdn: "ws-2.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" @@ -211,33 +180,61 @@ data: --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "ws-2.vpn.acme.com" + fqdn: "acme-2.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-2.vpn.acme.com" + fqdn: "acme-3.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-3.vpn.acme.com" + fqdn: "acme-1.vpn.acme.com" type: "A" --- -type: "io.trygvis.rules.engine.KeyValue" +type: "io.trygvis.rules.dba.Cluster" data: - key: "rm-gen" - value: null + name: "acme-ci" --- -type: "io.trygvis.rules.machine.Machine" +type: "io.trygvis.rules.dba.Cluster" data: - name: "ws-2" - fqdn: null + name: "acme-production" --- -type: "io.trygvis.rules.machine.Machine" +type: "io.trygvis.rules.terraform.ScalewayMachine" data: - name: "acme-2" - fqdn: "acme-2.machine.acme.com" + machine: + name: "acme-1" + fqdn: "acme-1.machine.acme.com" + key: "acme-1" +--- +type: "io.trygvis.rules.terraform.ScalewayMachine" +data: + machine: + name: "acme-2" + fqdn: "acme-2.machine.acme.com" + key: "acme-2" +--- +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" --- type: "io.trygvis.rules.machine.Machine" data: @@ -246,45 +243,48 @@ data: --- type: "io.trygvis.rules.machine.Machine" data: - name: "ws-1" - fqdn: null + name: "acme-2" + fqdn: "acme-2.machine.acme.com" --- type: "io.trygvis.rules.machine.Machine" data: name: "acme-3" fqdn: "acme-3.machine.acme.com" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.machine.Machine" data: - machine: - name: "ws-2" - fqdn: null - key: "ws-2" + name: "ws-1" + fqdn: null --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.machine.Machine" +data: + name: "ws-2" + fqdn: null +--- +type: "io.trygvis.rules.acme.AcmeServer" data: machine: name: "acme-3" fqdn: "acme-3.machine.acme.com" - key: "acme-3" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.acme.AcmeServer" data: machine: name: "acme-1" fqdn: "acme-1.machine.acme.com" - key: "acme-1" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.acme.AcmeServer" data: machine: name: "acme-2" fqdn: "acme-2.machine.acme.com" - key: "acme-2" --- -type: "io.trygvis.rules.terraform.ScalewayMachine" +type: "io.trygvis.rules.engine.KeyValue" data: - machine: - name: "ws-1" - fqdn: null - key: "ws-1" + key: "rm-gen" + value: null +--- +type: "io.trygvis.rules.acme.WgNet" +data: + name: "vs0" + domain: "vpn.acme.com" diff --git a/out/vs0.yaml b/out/vs0.yaml index c400981..2ca168b 100644 --- a/out/vs0.yaml +++ b/out/vs0.yaml @@ -1,10 +1,10 @@ --- type: "io.trygvis.rules.acme.WgHost" data: - name: "acme-3" + name: "acme-1" machine: - name: "acme-3" - fqdn: "acme-3.machine.acme.com" + name: "acme-1" + fqdn: "acme-1.machine.acme.com" net: "vs0" publicName: null netToNetIp: null @@ -12,8 +12,10 @@ data: --- type: "io.trygvis.rules.acme.WgHost" data: - name: "ws-2" - machine: null + name: "acme-2" + machine: + name: "acme-2" + fqdn: "acme-2.machine.acme.com" net: "vs0" publicName: null netToNetIp: null @@ -21,10 +23,10 @@ data: --- type: "io.trygvis.rules.acme.WgHost" data: - name: "acme-1" + name: "acme-3" machine: - name: "acme-1" - fqdn: "acme-1.machine.acme.com" + name: "acme-3" + fqdn: "acme-3.machine.acme.com" net: "vs0" publicName: null netToNetIp: null @@ -41,23 +43,16 @@ data: --- type: "io.trygvis.rules.acme.WgHost" data: - name: "acme-2" - machine: - name: "acme-2" - fqdn: "acme-2.machine.acme.com" + name: "ws-2" + machine: null net: "vs0" publicName: null netToNetIp: null networkIp: null --- -type: "io.trygvis.rules.acme.WgNet" -data: - name: "vs0" - domain: "vpn.acme.com" ---- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-1.vpn.acme.com" + fqdn: "ws-2.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" @@ -67,23 +62,23 @@ data: --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "ws-2.vpn.acme.com" + fqdn: "acme-2.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-2.vpn.acme.com" + fqdn: "acme-3.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.dns.DnsEntry" data: - fqdn: "acme-3.vpn.acme.com" + fqdn: "acme-1.vpn.acme.com" type: "A" --- type: "io.trygvis.rules.machine.Machine" data: - name: "ws-2" - fqdn: null + name: "acme-1" + fqdn: "acme-1.machine.acme.com" --- type: "io.trygvis.rules.machine.Machine" data: @@ -92,8 +87,8 @@ data: --- type: "io.trygvis.rules.machine.Machine" data: - name: "acme-1" - fqdn: "acme-1.machine.acme.com" + name: "acme-3" + fqdn: "acme-3.machine.acme.com" --- type: "io.trygvis.rules.machine.Machine" data: @@ -102,5 +97,10 @@ data: --- type: "io.trygvis.rules.machine.Machine" data: - name: "acme-3" - fqdn: "acme-3.machine.acme.com" + name: "ws-2" + fqdn: null +--- +type: "io.trygvis.rules.acme.WgNet" +data: + name: "vs0" + domain: "vpn.acme.com" |