summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-gw-lan.yml
blob: 7158e1278977a49cd2c3bb743572c4f5504bd6b9 (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
---
_vm_host_: ch-gnocchi

install:
  vm:
    host: "{{ _vm_host_ }}"
    mem: 512
    numcpu: 2
    autostart: True
  disks:
    primary: /dev/sda
    scsi:
      sda:
        type: lvm
        vg: "{{ hostvars[_vm_host_].host_name }}"
        lv: "{{ inventory_hostname }}"
        size: 10g
  interfaces:
  - bridge: br-svc
    name: svc0
  - bridge: br-lan
    name: lan0

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