summaryrefslogtreecommitdiff
path: root/inventory/host_vars/emc-stats.yml
blob: 59351996139127d1a72120348614f60fab4d8943 (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
43
44
45
46
47
48
49
50
51
52
---
vm_host: sk2016

install:
  host: "{{ vm_host }}"
  mem: 8192
  numcpu: 6
  disks:
    primary: /dev/vda
    virtio:
      vda:
        vg: storage
        lv: "{{ inventory_hostname }}"
        size: 42g
      vdb:
        vg: storage
        lv: "{{ inventory_hostname }}-data"
        size: 100g
  interfaces:
  - bridge: "{{ hostvars[vm_host].vm_host.network.interface }}"
    name: primary0
  autostart: True

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

docker_lvm:
  vg: "{{ host_name }}"
  lv: docker
  size: 15G
  fs: ext4

kubelet_lvm:
  vg: "{{ host_name }}"
  lv: kubelet
  size: 10G
  fs: ext4

emc_stats_lvm:
  pvs: /dev/vdb
  vg: "{{ host_name }}-data"
  lv: stats
  size: 50G
  fs: ext4