summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-05-31 18:45:31 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-05-31 18:45:31 +0200
commit76bf053cf54de6cf83e09d4c1c23e59298d41c90 (patch)
treea1140a572b5a55ad368100e89144663127f8bed4 /inventory/host_vars
parentcloud install: differnet kernel packages and no firmwares for virtual machines (diff)
ubuntu/vm: install special kernel image package
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ch-hroottest-vm1.yml29
-rw-r--r--inventory/host_vars/ch-hroottest.yml50
2 files changed, 79 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