From 2517710d221fba84b3fda973e3de92e481e7412a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 17 Nov 2022 23:45:52 +0100 Subject: ch-mimas: move git repos to zfs and prepare for remote backups --- inventory/host_vars/ch-mimas.yml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'inventory/host_vars/ch-mimas.yml') diff --git a/inventory/host_vars/ch-mimas.yml b/inventory/host_vars/ch-mimas.yml index 3826a8cf..a612565b 100644 --- a/inventory/host_vars/ch-mimas.yml +++ b/inventory/host_vars/ch-mimas.yml @@ -8,12 +8,19 @@ install: apt_repo_provider: hetzner +apt_repo_components: +- main +- contrib ## for zfs + spreadspace_apt_repo_components: - prometheus sshd_allowusers_host: "{{ admin_users_host + (['git'] | product(gitolite_instances | list) | map('join', '-')) }}" +ssh_keys_root_extra: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZK9NBainiE0+A8pT8dbwlNZ0k0AZVhLTzUSo3YtKJt ZFS Backup syncoid@epimetheus + ntp_variant: systemd-timesyncd @@ -22,6 +29,22 @@ nginx_server_names_hash_bucket_size: 64 acmetool_directory_server: "{{ acmetool_directory_server_le_live_v2 }}" +zfs_arc_size: + min: 256MB + max: 1GB + +zfs_pools: + storage: + mountpoint: /srv/storage + create_vdevs: "/dev/mapper/{{ host_name | replace('-', '--') }}-storage" + +zfs_sanoid_modules: + storage: + use_template: production + recursive: yes + process_children_only: yes + + bind_option_empty_zones_enable: no bind_option_allow_transfer: [] bind_option_allow_recursion: @@ -92,11 +115,12 @@ prometheus_job_multitarget_blackbox__probe: gitolite_storage: - type: lvm - vg: "{{ host_name }}" - lv: git - size: 1G - fs: ext4 + type: zfs + pool: storage + name: git + properties: + quota: 1G + compression: lz4 gitolite_instances: spreadspace: -- cgit v1.2.3