summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-hroottest-vm1.yml
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/ch-hroottest-vm1.yml
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/ch-hroottest-vm1.yml')
-rw-r--r--inventory/host_vars/ch-hroottest-vm1.yml29
1 files changed, 29 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') }}"