diff options
Diffstat (limited to 'example/acme.yaml')
-rw-r--r-- | example/acme.yaml | 78 |
1 files changed, 78 insertions, 0 deletions
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 |