summaryrefslogtreecommitdiff
path: root/inventory/host_vars/sk-tomnext-nc.yml
blob: 4394db9941cf209f5ee740d6306c6e3464748036 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
vm_host: sk-tomnext

install:
  host: "{{ vm_host }}"
  mem: 16384
  numcpu: 8
  disks:
    primary: /dev/sda
    scsi:
      sda:
        type: zfs
        name: root
        size: 15g
      sdb:
        type: zfs
        name: data
        size: 800g
  interfaces:
  - bridge: br-public
    name: primary0
  autostart: True

network:
  nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
  domain: "{{ host_domain }}"
  systemd_link:
    interfaces: "{{ install.interfaces }}"
  primary:
    interface: primary0
    ip: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
    mask: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
    gateway: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('address') }}"
    overlay: "{{ (hostvars[vm_host].vm_host.network.bridges.public.overlay.prefix | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.overlay.offsets[inventory_hostname])).split('/')[0] }}"

external_ip: "{{ network.primary.overlay }}"


apt_repo_components:
- main
- contrib  ## for zfs


zfs_arc_size:
  min: "{{ 2 * 1024 * 1024 * 1024 }}"
  max: "{{ 8 * 1024 * 1024 * 1024 }}"

zfs_zpools:
  storage:
    mountpoint: /srv/storage
    create_vdevs: /dev/sdb

zfs_sanoid_modules:
  storage/nextcloud:
    use_template: production
    recursive: yes
    process_children_only: yes


docker_zfs:
  pool: storage
  name: docker
  size: 15G

kubelet_zfs:
  pool: storage
  name: kubelet
  size: 15G

kubernetes_version: 1.18.3
kubernetes_container_runtime: docker
kubernetes_standalone_max_pods: 15
kubernetes_standalone_pod_cidr: 192.168.255.0/24
kubernetes_standalone_cni_variant: with-portmap


acmetool_directory_server: "{{ acmetool_directory_server_le_live_v2 }}"


nextcloud_zfs:
  pool: storage
  name: nextcloud
  size: 700G

nextcloud_instances:
  team.tomwaitz.eu:
    # new: true
    version: 18.0.4
    port: 8100
    hostnames:
      - team.tomwaitz.eu
    quota: 700G
    database:
      type: mariadb
      version: 10.5.3
      password: "{{ vault_nextcloud_database_passwords['team.tomwaitz.eu'] }}"