torwachter: rm d3 key as he does no longer want access as told by ruru. Also better...
[noc.git] / ansible / host_vars / testvm / main.yml
1 ---
2 localconfig_ssh_config_user: root
3
4 vm_host: alfred
5
6 install:
7   host: "{{ vm_host }}"
8   mem: 1024
9   numcpu: 2
10   disks:
11     primary: /dev/vda
12     virtio:
13       vda:
14         vg: "{{ vm_host }}"
15         lv: "{{ inventory_hostname }}"
16         size: 10g
17   interfaces:
18   - bridge: "{{ hostvars[vm_host].vm_host.network.interface }}"
19     name: mgmt0
20   - bridge: "br-svc"
21     name: svc0
22   autostart: True
23
24 network:
25   nameservers: "{{ hostvars[vm_host].vm_host.network.nameservers }}"
26   domain: realraum.at
27   systemd_link:
28     interfaces: "{{ install.interfaces }}"
29   primary:
30     interface: mgmt0
31     ip: "{{ (hostvars[vm_host].vm_host.network.ip+'/'+hostvars[vm_host].vm_host.network.mask) | ipaddr(hostvars[vm_host].vm_host.network.indices[inventory_hostname]) | ipaddr('address') }}"
32     mask: "{{ hostvars[vm_host].vm_host.network.mask }}"
33     gateway: "{{ hostvars[vm_host].vm_host.network.gateway | default(hostvars[vm_host].vm_host.network.ip) }}"