summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-router-obsd.yml
blob: 74ecb75b8ff959963d6ca7f6d99b6030eb9a8adb (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
---
install:
  vm:
    memory: 512M
    numcpus: 1
    autostart: True
  disks:
    primary: /dev/sda
    virtio:
      vda:
        type: lvm
        vg: "{{ hostvars[vm_host.name].host_name }}"
        lv: "{{ inventory_hostname }}"
        size: 10g
  interfaces:
  - bridge: br-svc
    name: vio0

network:
  nameservers: "{{ network_zones.svc.dns }}"
  domain: "{{ host_domain }}"
  primary: &_network_primary_
    name: vio0
    address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
    gateway: "{{ network_zones.svc.gateway }}"
  interfaces:
  - *_network_primary_