diff options
Diffstat (limited to 'inventory/host_vars/sk-tomnext-nc.yml')
-rw-r--r-- | inventory/host_vars/sk-tomnext-nc.yml | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/inventory/host_vars/sk-tomnext-nc.yml b/inventory/host_vars/sk-tomnext-nc.yml new file mode 100644 index 00000000..296a9e28 --- /dev/null +++ b/inventory/host_vars/sk-tomnext-nc.yml @@ -0,0 +1,126 @@ +--- +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 }}" +nginx_server_names_hash_bucket_size: 64 + +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'] }}" + custom_image: + dockerfile: | + RUN set -x \ + && sed 's/main$/main contrib non-free/' -i /etc/apt/sources.list \ + && apt-get update -q \ + && apt-get install -y -q unrar \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + + +collabora_code_base_path: /srv/storage/collabora/code + +collabora_code_instances: + o.tomwaitz.eu: + version: 4.2.3.1 + port: 8200 + hostname: o.tomwaitz.eu + admin: + username: admin + password: "{{ vault_collabora_code_admin_passwords['o.tomwaitz.eu'] }}" + backend_storages: + - team.tomwaitz.eu + custom_image: + dockerfile: | + USER root + RUN set -x \ + && echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \ + && apt-get update -q \ + && apt-get install -y -q ttf-mscorefonts-installer \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + USER 101 |