summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
Diffstat (limited to 'inventory')
-rw-r--r--inventory/host_vars/ch-hroottest-vm1.yml29
-rw-r--r--inventory/host_vars/ch-hroottest.yml50
-rw-r--r--inventory/hosts.ini6
3 files changed, 85 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-hroottest-vm1.yml b/inventory/host_vars/ch-hroottest-vm1.yml
new file mode 100644
index 00000000..53a910e8
--- /dev/null
+++ b/inventory/host_vars/ch-hroottest-vm1.yml
@@ -0,0 +1,29 @@
+---
+vm_host: ch-hroottest
+
+install:
+ host: "{{ vm_host }}"
+ mem: 4096
+ numcpu: 4
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 20g
+ interfaces:
+ - bridge: br-public
+ name: primary0
+ autostart: True
+
+network:
+ nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
+ domain: "{{ host_domain }}"
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary:
+ interface: primary0
+ ip: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
+ gateway: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('address') }}"
diff --git a/inventory/host_vars/ch-hroottest.yml b/inventory/host_vars/ch-hroottest.yml
new file mode 100644
index 00000000..5de56794
--- /dev/null
+++ b/inventory/host_vars/ch-hroottest.yml
@@ -0,0 +1,50 @@
+---
+install:
+ cloud:
+ credentials: "{{ vault_hroot_robot_account }}"
+ server_name: "{{ host_name }}"
+ disks:
+ layout: sata_raid
+ root_lvm_size: 10G
+
+network: {}
+
+
+apt_repo_components:
+- main
+- contrib ## for zfs
+- non-free ## for microcode updates
+
+
+zfs_arc_size:
+ min: "{{ 1 * 1024 * 1024 * 1024 }}"
+ max: "{{ 4 * 1024 * 1024 * 1024 }}"
+
+zfs_zpools:
+ storage:
+ mountpoint: /srv/storage
+ create_vdevs: mirror /dev/disk/by-id/ata-SAMSUNG_HD753LJ_S13UJ1LS801071-part3 /dev/disk/by-id/ata-SAMSUNG_HD753LJ_S13UJ1BQ802393-part3
+
+zfs_sanoid_modules:
+ storage/vm:
+ use_template: production
+ recursive: yes
+ process_children_only: yes
+
+
+vm_host:
+ network:
+ dns:
+ - 213.133.100.100
+ - 213.133.98.98
+ - 213.133.99.99
+ bridges:
+ public:
+ prefix: 192.168.250.254/24
+ offsets:
+ ch-hroottest-vm1: 100
+ nat: yes
+ zfs:
+ default:
+ pool: storage
+ name: vm
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index 2e55d5dd..8e96f240 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -24,6 +24,8 @@ ch-router host_name=router
ch-router-obsd host_name=router
ch-gw-lan host_name=gw-lan
ch-jump host_name=jump ansible_port=2342 ansible_host=ch-jump
+ch-hroottest host_name=hroot-test
+ch-hroottest-vm1 host_name=hroot-test-vm1
[chaos-at-home:children]
mz-chaos-at-home
@@ -232,6 +234,7 @@ r3-cccamp19-dione
r3-cccamp19-helene
sk-2019vm
sk-tomnext
+ch-hroottest
[kvmguests]
emc-master
@@ -254,12 +257,14 @@ ele-gwhetzner
ele-mur
sk-tomnext-nc
sk-tomnext-hp
+ch-hroottest-vm1
[hroot]
sk-2019
sk-cloudia
sk-2019vm
sk-tomnext
+ch-hroottest
[hcloud]
ch-mimas2
@@ -276,6 +281,7 @@ emc-master
lw-master
sk-testvm
sk-torrent
+ch-hroottest-vm1
[hetzner:children]
hroot