summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-router-obsd.yml
blob: a88110f35ad3a2a92634455f1761a3dee104064f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
vm_host: ch-gnocchi

install:
  host: "{{ vm_host }}"
  mem: 512
  numcpu: 1
  disks:
    primary: /dev/sda
    virtio:
      vda:
        type: lvm
        vg: "{{ hostvars[vm_host].host_name }}"
        lv: "{{ inventory_hostname }}"
        size: 10g
  interfaces:
  - bridge: br-svc
    name: vio0
  autostart: True

network:
  nameservers: "{{ network_zones.svc.dns }}"
  domain: "{{ host_domain }}"
  primary:
    interface: vio0
    ip: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address') }}"
    mask: "{{ network_zones.svc.prefix | ipaddr('netmask') }}"
    gateway: "{{ network_zones.svc.gateway }}"