summaryrefslogtreecommitdiff
path: root/host_vars/kube2016.yaml
blob: fa2d8d1d8795c45e50d6c9e0db045e12dbcae17d (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
42
---
vm_install_host: sk2016

vm_install:
  host: "{{ vm_install_host }}"
  mem: 8192
  numcpu: 6
  disks:
    primary: vda
    virtio:
      vda:
        vg: storage
        lv: "{{ inventory_hostname }}"
        size: 100g
  interfaces:
  - idx: 1
    bridge: "{{ hostvars[vm_install_host].vm_host.network.interface }}"
    name: primary0
  autostart: True

vm_network:
  systemd_link:
    interfaces: "{{ vm_install.interfaces }}"
  primary:
    interface: primary0
    ip: "{{ (hostvars[vm_install_host].vm_host.network.ip+'/'+hostvars[vm_install_host].vm_host.network.mask) | ipaddr(hostvars[vm_install_host].vm_host.network.indices[inventory_hostname]) | ipaddr('address') }}"
    mask: "{{ hostvars[vm_install_host].vm_host.network.mask }}"
    gateway: "{{ hostvars[vm_install_host].vm_host.network.ip }}"
    nameservers: "{{ hostvars[vm_install_host].vm_host.network.nameservers }}"
    domain: spreadspace.org

docker_lvm:
  vg: kube2016
  lv: docker
  size: 15G
  fs: ext4

kubelet_lvm:
  vg: kube2016
  lv: kubelet
  size: 10G
  fs: ext4