summaryrefslogtreecommitdiff
path: root/example/acme.yaml
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-02-03 16:35:48 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-02-03 16:35:48 +0100
commitbafe762ac01d16904c18404283027e426e19bc73 (patch)
treec22688ad186f5ce635f525704c5035f91b983b68 /example/acme.yaml
parent91abd0b04320a9c9d932df195aca38c1cacfcc5a (diff)
downloadrules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.gz
rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.bz2
rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.xz
rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.zip
Code reorganization.
Moving main code to src, keeping modules in modules/
Diffstat (limited to 'example/acme.yaml')
-rw-r--r--example/acme.yaml78
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