aboutsummaryrefslogtreecommitdiffstats
path: root/host_vars
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-18 09:38:36 +0100
committerbinary <me@rgoncalves.se>2020-11-18 09:38:36 +0100
commit541d963cca366cb4541de26c8b691a2b273cfa94 (patch)
treee523ce2316a747f828d80e35a2ad42042ffd6b3b /host_vars
parent9f69010653dfdb6b76f60775642cd77f734f80ac (diff)
downloadinfrastructure-541d963cca366cb4541de26c8b691a2b273cfa94.tar.gz
Refactor group/host/inventory in sub-files
Diffstat (limited to 'host_vars')
-rw-r--r--host_vars/dcontroller.yml16
-rw-r--r--host_vars/emb0.yml13
-rw-r--r--host_vars/stack0.yml30
-rw-r--r--host_vars/template12
4 files changed, 71 insertions, 0 deletions
diff --git a/host_vars/dcontroller.yml b/host_vars/dcontroller.yml
new file mode 100644
index 0000000..b891cc2
--- /dev/null
+++ b/host_vars/dcontroller.yml
@@ -0,0 +1,16 @@
+hostname: dcontroller
+virtual: true
+
+ip:
+ in: 10.10.0.1
+ out: 192.168.5.1
+
+services:
+
+ - name: "ssh"
+ proto: "tcp"
+ port: "22"
+
+ - name: "wireguard"
+ proto: "udp"
+ port: "53"
diff --git a/host_vars/emb0.yml b/host_vars/emb0.yml
new file mode 100644
index 0000000..d135429
--- /dev/null
+++ b/host_vars/emb0.yml
@@ -0,0 +1,13 @@
+hostname: emb0
+virtual: false
+
+ip:
+ in: 10.10.0.40
+ out: 192.168.5.40
+
+services:
+
+ - name: "ssh"
+ proto: "tcp"
+ port: "22"
+
diff --git a/host_vars/stack0.yml b/host_vars/stack0.yml
new file mode 100644
index 0000000..051908b
--- /dev/null
+++ b/host_vars/stack0.yml
@@ -0,0 +1,30 @@
+hostname: stack0
+ip:
+ in: 10.10.0.40
+ out: 192.168.5.40
+
+virtual: false
+
+services:
+
+ - name: "ssh"
+ proto: "tcp"
+ port: "22"
+
+vms:
+
+ - name: vm0
+ memory: 2G
+ disks:
+ - { size: "4G" }
+
+ - name: vm1
+ memory: 2G
+ disks:
+ - { size: "4G" }
+
+ - name: vm1
+ memory: 2G
+ disks:
+ - { size: "4G" }
+
diff --git a/host_vars/template b/host_vars/template
new file mode 100644
index 0000000..7eaa472
--- /dev/null
+++ b/host_vars/template
@@ -0,0 +1,12 @@
+hostname: required;string
+ip:
+ in: required;string
+ out: required;string
+
+virtual: required;bool
+
+vms:
+ - name: required;string
+ memory: required;string
+ disks:
+ - { size: required;string }
remember that computers suck.