aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-04 17:09:00 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-04 18:47:42 +0000
commit39a003aaca64af6ee57cc9f24e782d7dc1047c17 (patch)
treef4a0caf7bb0c0b46ae1124ce17a1bcc1a18cedb6
parentce061ee4ce308bb7ee04c1df1e91792ff11b1ba6 (diff)
downloadrules-39a003aaca64af6ee57cc9f24e782d7dc1047c17.tar.gz
inventory: Add per host and group files
-rw-r--r--group_vars/all.yml16
-rw-r--r--host_vars/dc0.yml5
-rw-r--r--host_vars/localhost.yml2
-rw-r--r--host_vars/stack0-cld0.yml5
-rw-r--r--host_vars/stack0-dc1.yml5
-rw-r--r--host_vars/stack0.yml22
-rw-r--r--host_vars/ws-bentonite.yml3
-rw-r--r--host_vars/ws-think01.yml3
-rw-r--r--host_vars/ws-xps01.yml3
-rw-r--r--inventory.ini6
10 files changed, 70 insertions, 0 deletions
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
remember that computers suck.