From bafe762ac01d16904c18404283027e426e19bc73 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 3 Feb 2021 16:35:48 +0100 Subject: Code reorganization. Moving main code to src, keeping modules in modules/ --- example/acme.yaml | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 example/acme.yaml (limited to 'example/acme.yaml') diff --git a/example/acme.yaml b/example/acme.yaml new file mode 100644 index 0000000..741e711 --- /dev/null +++ b/example/acme.yaml @@ -0,0 +1,78 @@ +- 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 + + + # DNS configuration +- type: io.trygvis.rules.terraform.GoogleManagedZoneTerraformExpression + data: + name: "acme_zone" + + +- type: io.trygvis.rules.machine.Machine + data: + name: acme-1 + +- type: io.trygvis.rules.dba.DbaMachineRole + data: + machine: acme-1 + roles: + - ci-app + + +- type: io.trygvis.rules.machine.MachineSpecificaiton + data: + mCpu: 2000 + memory: 2000 + +- type: io.trygvis.rules.machine.Machine + data: + name: acme-2 + +- type: io.trygvis.rules.dba.DbaMachineRole + data: + machine: acme-2 + roles: + - ops + - ci-db # This also runs the DB for the non-production environments to keep the other machines stateless + + +- type: io.trygvis.rules.machine.Machine + data: + name: acme-3 + +- type: io.trygvis.rules.dba.DbaMachineRole + data: + machine: acme-3 + roles: + - production-app + - production-db + + # Workstations + +- type: io.trygvis.rules.machine.Machine + data: + name: ws-1 + +- type: io.trygvis.rules.machine.Machine + data: + name: ws-2 + + # Wireguard VPN network +- type: io.trygvis.rules.wireguard.WgNet + data: + name: vpn0 + domain: vpn.acme.com + port: 53476 + linkCidr: 192.168.10.0/29 + networkCidr: 10.55.0.0/16 + networkBits: 24 + \ No newline at end of file -- cgit v1.2.3