From 39a003aaca64af6ee57cc9f24e782d7dc1047c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 4 Dec 2021 17:09:00 +0000 Subject: inventory: Add per host and group files --- group_vars/all.yml | 16 ++++++++++++++++ host_vars/dc0.yml | 5 +++++ host_vars/localhost.yml | 2 ++ host_vars/stack0-cld0.yml | 5 +++++ host_vars/stack0-dc1.yml | 5 +++++ host_vars/stack0.yml | 22 ++++++++++++++++++++++ host_vars/ws-bentonite.yml | 3 +++ host_vars/ws-think01.yml | 3 +++ host_vars/ws-xps01.yml | 3 +++ inventory.ini | 6 ++++++ 10 files changed, 70 insertions(+) create mode 100644 group_vars/all.yml create mode 100644 host_vars/dc0.yml create mode 100644 host_vars/localhost.yml create mode 100644 host_vars/stack0-cld0.yml create mode 100644 host_vars/stack0-dc1.yml create mode 100644 host_vars/stack0.yml create mode 100644 host_vars/ws-bentonite.yml create mode 100644 host_vars/ws-think01.yml create mode 100644 host_vars/ws-xps01.yml create mode 100644 inventory.ini diff --git a/group_vars/all.yml b/group_vars/all.yml new file mode 100644 index 0000000..fc0c9ed --- /dev/null +++ b/group_vars/all.yml @@ -0,0 +1,16 @@ +ansible_become_method: su + +__is_vm: false + +__ip: + external: + internal: + +__services: {} + +__global: + domain_controller: "dc0" + domain_name: "rgoncalves.se" + dns: + - 8.8.8.8 + - 1.1.1.1 diff --git a/host_vars/dc0.yml b/host_vars/dc0.yml new file mode 100644 index 0000000..f517188 --- /dev/null +++ b/host_vars/dc0.yml @@ -0,0 +1,5 @@ +__is_vm: true + +__ip: + external: 185.203.114.234 + internal: 10.10.0.1 diff --git a/host_vars/localhost.yml b/host_vars/localhost.yml new file mode 100644 index 0000000..5bb76b0 --- /dev/null +++ b/host_vars/localhost.yml @@ -0,0 +1,2 @@ +ansible_host: 127.0.0.1 +ansible_connection: local diff --git a/host_vars/stack0-cld0.yml b/host_vars/stack0-cld0.yml new file mode 100644 index 0000000..62e282d --- /dev/null +++ b/host_vars/stack0-cld0.yml @@ -0,0 +1,5 @@ +__is_vm: true + +__ip: + external: 192.168.5.62 + internal: 10.10.0.62 diff --git a/host_vars/stack0-dc1.yml b/host_vars/stack0-dc1.yml new file mode 100644 index 0000000..c681bc0 --- /dev/null +++ b/host_vars/stack0-dc1.yml @@ -0,0 +1,5 @@ +__is_vm: true + +__ip: + external: 192.168.5.60 + internal: 10.10.0.60 diff --git a/host_vars/stack0.yml b/host_vars/stack0.yml new file mode 100644 index 0000000..a6d0500 --- /dev/null +++ b/host_vars/stack0.yml @@ -0,0 +1,22 @@ +__ip: + external: 192.168.5.40 + internal: 10.10.0.40 + +__vms: + - name: stack0-dc1 + image: openbsd + memory: 4G + disks: + - size: 8G + + - name: stack0-cld0 + image: openbsd + memory: 4G + disks: + - size: 8G + + - name: stack0-git0 + image: openbsd + memory: 2G + disks: + - size: 8G diff --git a/host_vars/ws-bentonite.yml b/host_vars/ws-bentonite.yml new file mode 100644 index 0000000..dedc166 --- /dev/null +++ b/host_vars/ws-bentonite.yml @@ -0,0 +1,3 @@ +__ip: + external: dhcp + internal: 10.10.0.80 diff --git a/host_vars/ws-think01.yml b/host_vars/ws-think01.yml new file mode 100644 index 0000000..0fddec5 --- /dev/null +++ b/host_vars/ws-think01.yml @@ -0,0 +1,3 @@ +__ip: + external: dhcp + internal: 10.10.0.82 diff --git a/host_vars/ws-xps01.yml b/host_vars/ws-xps01.yml new file mode 100644 index 0000000..cda287c --- /dev/null +++ b/host_vars/ws-xps01.yml @@ -0,0 +1,3 @@ +__ip: + external: dhcp + internal: 10.10.0.81 diff --git a/inventory.ini b/inventory.ini new file mode 100644 index 0000000..d335577 --- /dev/null +++ b/inventory.ini @@ -0,0 +1,6 @@ +[all] +localhost + +stack0 +stack0-dc1 +stack0-cld0 -- cgit v1.2.3