summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-mimas.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-17 23:45:52 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-17 23:45:52 +0100
commit2517710d221fba84b3fda973e3de92e481e7412a (patch)
tree5a1f17f7f779bebd2a5b7f94da46277ba10621ec /inventory/host_vars/ch-mimas.yml
parentfix prometheus alert for git-fsck (diff)
ch-mimas: move git repos to zfs and prepare for remote backups
Diffstat (limited to 'inventory/host_vars/ch-mimas.yml')
-rw-r--r--inventory/host_vars/ch-mimas.yml34
1 files changed, 29 insertions, 5 deletions
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: