From 541d963cca366cb4541de26c8b691a2b273cfa94 Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 18 Nov 2020 09:38:36 +0100 Subject: Refactor group/host/inventory in sub-files --- host_vars/dcontroller.yml | 16 ++++++++++++++++ host_vars/emb0.yml | 13 +++++++++++++ host_vars/stack0.yml | 30 ++++++++++++++++++++++++++++++ host_vars/template | 12 ++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 host_vars/dcontroller.yml create mode 100644 host_vars/emb0.yml create mode 100644 host_vars/stack0.yml create mode 100644 host_vars/template (limited to 'host_vars') 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 } -- cgit v1.2.3