summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-testvm-atlas.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-testvm-atlas.yml')
-rw-r--r--inventory/host_vars/ch-testvm-atlas.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-testvm-atlas.yml b/inventory/host_vars/ch-testvm-atlas.yml
new file mode 100644
index 00000000..e86eb632
--- /dev/null
+++ b/inventory/host_vars/ch-testvm-atlas.yml
@@ -0,0 +1,32 @@
+---
+install:
+ vm:
+ memory: 1G
+ numcpus: 1
+ autostart: False
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: lvm
+ vg: "{{ hostvars[vm_host.name].host_name }}"
+ lv: "{{ inventory_hostname }}"
+ size: 5g
+ interfaces:
+ - bridge: br-public
+ name: primary0
+ mac: 52:54:00:42:e6:df
+
+network:
+ nameservers: "{{ vm_host.network.dns }}"
+ domain: "{{ host_domain }}"
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary: &_network_primary_
+ name: primary0
+ address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway: "{{ vm_host.network.bridges.public.gateway }}"
+ address6: "{{ vm_host.network.bridges.public.prefix6 | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway6: "{{ vm_host.network.bridges.public.gateway6 }}"
+ interfaces:
+ - *_network_primary_