summaryrefslogtreecommitdiff
path: root/inventory/host_vars/r3-vex2.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/r3-vex2.yml')
-rw-r--r--inventory/host_vars/r3-vex2.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/inventory/host_vars/r3-vex2.yml b/inventory/host_vars/r3-vex2.yml
new file mode 100644
index 00000000..74f9cacc
--- /dev/null
+++ b/inventory/host_vars/r3-vex2.yml
@@ -0,0 +1,33 @@
+---
+apt_repo_provider: ffgraz
+
+vm_host: ch-atlas
+
+install:
+ host: "{{ vm_host }}"
+ mem: 2048
+ numcpu: 2
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ vg: "{{ hostvars[vm_host].host_name }}"
+ lv: "{{ inventory_hostname }}"
+ size: 15g
+ interfaces:
+ - bridge: extbr
+ 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.prefix | ipaddr(hostvars[vm_host].vm_host.network.offsets[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[vm_host].vm_host.network.prefix | ipaddr('netmask') }}"
+ gateway: "{{ hostvars[vm_host].vm_host.network.gw }}"
+ prefix6: "{{ hostvars[vm_host].vm_host.network.prefix6 | ipaddr(hostvars[vm_host].vm_host.network.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway6: "{{ hostvars[vm_host].vm_host.network.gw6 }}"