summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-oulu-vm1.yml
blob: 0f4b8492d983244ed6e072529efbda6a59f86803 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
---
install:
  vm:
    memory: 16G
    numcpus: 12
    autostart: True
  disks:
    primary: /dev/sda
    scsi:
      sda:
        type: zfs
        name: root
        size: 10g
  interfaces:
  - bridge: br-lan
    name: lan0
  - bridge: br-svc
    name: svc0

network:
  nameservers: "{{ network_zones.lan.dns }}"
  domain: "{{ host_domain }}"
  systemd_link:
    interfaces: "{{ install.interfaces }}"
  primary: &_network_primary_
    name: lan0
    address: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
    gateway: "{{ network_zones.lan.gateway }}"
    template: multihomed-base
  interfaces:
  - *_network_primary_
  - name: svc0
    address: 192.168.3.1/24
    template: multihomed-overlay
    overlays:
    - name: mur.at
      address: 1.2.3.4/28
      gateway: 1.2.3.1
    - name: magenta
      address: 5.6.7.8/27
      gateway: 5.6.7.1