From 70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 7 Jan 2021 12:20:02 +0100 Subject: More Wireguard. Fixing broken myapps too. --- out/acme/apps.yaml | 73 +++++++++++++++++++++++++++++++--------------- out/acme/wireguard.yaml | 77 +++++++++++++++++++++++++------------------------ 2 files changed, 88 insertions(+), 62 deletions(-) (limited to 'out') diff --git a/out/acme/apps.yaml b/out/acme/apps.yaml index 82050eb..9ec1663 100644 --- a/out/acme/apps.yaml +++ b/out/acme/apps.yaml @@ -1,14 +1,4 @@ --- -type: "io.trygvis.acme.AcmeMyApp" -data: - environment: "ci" - dockerTag: "development" ---- -type: "io.trygvis.acme.AcmeMyApp" -data: - environment: "production" - dockerTag: "master" ---- type: "io.trygvis.acme.AcmeServer" data: name: "acme-1" @@ -30,18 +20,35 @@ data: name: "acme-3" fqdn: "acme-3.machine.acme.com" --- +type: "io.trygvis.acme.apps.AcmeMyApp" +data: + environment: "ci" + dockerTag: "development" +--- +type: "io.trygvis.acme.apps.AcmeMyApp" +data: + environment: "production" + dockerTag: "master" +--- +type: "io.trygvis.acme.apps.AcmeOps" +data: {} +--- +type: "io.trygvis.rules.dba.Cluster" +data: + name: "acme-myapp-ci" +--- type: "io.trygvis.rules.dba.Cluster" data: - name: "acme-ci" + name: "acme-myapp-production" --- type: "io.trygvis.rules.dba.Cluster" data: - name: "acme-production" + name: "acme-ops" --- type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-myapp-ci" name: "app" machineRole: "4tune-api" image: "4tune-api" @@ -50,7 +57,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-myapp-production" name: "app" machineRole: "4tune-api" image: "4tune-api" @@ -59,7 +66,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-myapp-ci" name: "app" machineRole: "4tune-web" image: "4tune-web" @@ -68,7 +75,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-myapp-production" name: "app" machineRole: "4tune-web" image: "4tune-web" @@ -77,7 +84,25 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-ops" + name: "app" + machineRole: "n8n" + image: "n8n" + tag: "0.84.1" +--- +type: "io.trygvis.rules.dba.Container" +data: + cluster: + name: "acme-ops" + name: "app" + machineRole: "pdb" + image: "postgresql" + tag: "11" +--- +type: "io.trygvis.rules.dba.Container" +data: + cluster: + name: "acme-myapp-ci" name: "app" machineRole: "statera" image: "statera" @@ -86,7 +111,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-myapp-production" name: "app" machineRole: "statera" image: "statera" @@ -95,7 +120,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-myapp-ci" name: "app" machineRole: "statera-console" image: "statera-console" @@ -104,7 +129,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-myapp-production" name: "app" machineRole: "statera-console" image: "statera-console" @@ -113,7 +138,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-myapp-ci" name: "db" machineRole: "mdb" image: "mongodb" @@ -122,7 +147,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-myapp-production" name: "db" machineRole: "mdb" image: "mongodb" @@ -131,7 +156,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-production" + name: "acme-myapp-ci" name: "db" machineRole: "pdb" image: "postgresql" @@ -140,7 +165,7 @@ data: type: "io.trygvis.rules.dba.Container" data: cluster: - name: "acme-ci" + name: "acme-myapp-production" name: "db" machineRole: "pdb" image: "postgresql" diff --git a/out/acme/wireguard.yaml b/out/acme/wireguard.yaml index ebad93a..2a3ff80 100644 --- a/out/acme/wireguard.yaml +++ b/out/acme/wireguard.yaml @@ -157,13 +157,6 @@ data: value: "192.168.10.4" --- type: "io.trygvis.rules.wireguard.WgIpAllocation" -data: - host: "acme-1" - role: "network" - ip: - value: "10.55.55.4" ---- -type: "io.trygvis.rules.wireguard.WgIpAllocation" data: host: "acme-2" role: "link" @@ -171,13 +164,6 @@ data: value: "192.168.10.3" --- type: "io.trygvis.rules.wireguard.WgIpAllocation" -data: - host: "acme-2" - role: "network" - ip: - value: "10.55.55.3" ---- -type: "io.trygvis.rules.wireguard.WgIpAllocation" data: host: "acme-3" role: "link" @@ -185,13 +171,6 @@ data: value: "192.168.10.2" --- type: "io.trygvis.rules.wireguard.WgIpAllocation" -data: - host: "acme-3" - role: "network" - ip: - value: "10.55.55.2" ---- -type: "io.trygvis.rules.wireguard.WgIpAllocation" data: host: "ws-1" role: "link" @@ -199,26 +178,12 @@ data: value: "192.168.10.1" --- type: "io.trygvis.rules.wireguard.WgIpAllocation" -data: - host: "ws-1" - role: "network" - ip: - value: "10.55.55.1" ---- -type: "io.trygvis.rules.wireguard.WgIpAllocation" data: host: "ws-2" role: "link" ip: value: "192.168.10.0" --- -type: "io.trygvis.rules.wireguard.WgIpAllocation" -data: - host: "ws-2" - role: "network" - ip: - value: "10.55.55.0" ---- type: "io.trygvis.rules.wireguard.WgIpPool" data: net: "vpn0" @@ -229,13 +194,49 @@ data: type: "io.trygvis.rules.wireguard.WgIpPool" data: net: "vpn0" - role: "network" + role: "networks" cidr: - value: "10.55.55.0/24" + value: "10.55.0.0/16" --- type: "io.trygvis.rules.wireguard.WgNet" data: name: "vpn0" domain: "vpn.acme.com" linkCidr: "192.168.10.0/29" - networkCidr: "10.55.55.0/24" + networkCidr: "10.55.0.0/16" + networkBits: 24 +--- +type: "io.trygvis.rules.wireguard.WgNetworkAllocation" +data: + host: "acme-1" + role: "network" + cidr: + value: "10.55.251.0/24" +--- +type: "io.trygvis.rules.wireguard.WgNetworkAllocation" +data: + host: "acme-2" + role: "network" + cidr: + value: "10.55.252.0/24" +--- +type: "io.trygvis.rules.wireguard.WgNetworkAllocation" +data: + host: "acme-3" + role: "network" + cidr: + value: "10.55.253.0/24" +--- +type: "io.trygvis.rules.wireguard.WgNetworkAllocation" +data: + host: "ws-1" + role: "network" + cidr: + value: "10.55.254.0/24" +--- +type: "io.trygvis.rules.wireguard.WgNetworkAllocation" +data: + host: "ws-2" + role: "network" + cidr: + value: "10.55.255.0/24" -- cgit v1.2.3