reinstall home server and backups and many fixes

This commit is contained in:
mwiegand 2022-06-22 22:31:39 +02:00
parent f55d46281c
commit 72f560809b
9 changed files with 48 additions and 10 deletions

1
.envrc
View file

@ -3,6 +3,7 @@
python3 -m venv .venv
source ./.venv/bin/activate
PATH_add .venv/bin
PATH_add bin
python3 -m pip install --upgrade pip
rm -rf .cache/bw/git_deploy

View file

@ -11,10 +11,6 @@ downloads['/usr/local/bin/gitea'] = {
},
}
users['git'] = {
'home': '/home/git',
}
directories['/var/lib/gitea'] = {
'owner': 'git',
'mode': '0700',

View file

@ -1,6 +1,15 @@
database_password = repo.vault.password_for(f'{node.name} postgresql gitea')
defaults = {
'apt': {
'packages': {
'git': {
'needed_by': {
'svc_systemd:gitea',
}
},
},
},
'gitea': {
'database': {
'host': 'localhost',
@ -52,6 +61,11 @@ defaults = {
},
},
},
'users': {
'git': {
'home': '/home/git',
},
},
'zfs': {
'datasets': {
'tank/gitea': {

View file

@ -4,6 +4,7 @@ defaults = {
'apt': {
'packages': {
'influxdb2': {},
'influxdb2-cli': {},
},
'sources': {
'deb https://repos.influxdata.com/debian {release} stable',

View file

@ -5,6 +5,7 @@ defaults = {
'apt': {
'packages': {
'php': {},
'php-redis': {},
'php-fpm': {},
'php-curl': {},
'php-gd': {},

View file

@ -1,4 +1,9 @@
defaults = {
'apt': {
'packages': {
'python3-pip': {},
},
},
'postgresql': {
'roles': {
'steam_chat_logger': {

View file

@ -1,3 +1,11 @@
defaults = {
'apt': {
'packages': {
'wakeonlan': {},
},
},
}
@metadata_reactor.provides(
'users/wol',
)

View file

@ -17,10 +17,10 @@
'id': '9cf52515-63a1-4659-a8ec-6c3c881727e5',
'network': {
'internal': {
'interface': 'enp1s0',
'interface': 'enp0s31f6',
'ipv4': '10.0.0.5/24',
'gateway4': '10.0.0.1',
'mac': 'd8:cb:8a:e7:be:c6',
'mac': '4c:cc:6a:d5:96:f8',
},
},
'backup-server': {

View file

@ -16,11 +16,10 @@
'build-agent',
'crystal',
'gitea',
'gollum',
# 'gollum',
'grafana',
'influxdb2',
'mirror',
'mosquitto',
'postgresql',
'redis',
'smartctl',
@ -36,7 +35,7 @@
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
'network': {
'internal': {
'interface': 'enp0s31f6',
'interface': 'enp42s0',
'ipv4': '10.0.0.2/24',
'gateway4': '10.0.0.1',
},
@ -121,7 +120,7 @@
},
'vm': {
'cores': 2,
'ram': 16192,
'ram': 32384,
},
'wireguard': {
'my_ip': '172.30.0.2/32',
@ -136,6 +135,7 @@
},
},
'zfs': {
'zfs_arc_max_percent': 75,
'pools': {
'tank': {
'type': 'mirror',
@ -144,6 +144,18 @@
'/dev/disk/by-partlabel/zfs-data-2',
],
},
'ssd': {
'type': 'mirror',
'devices': [
'/dev/disk/by-id/nvme-SAMSUNG_MZVL22T0HBLB-00B00_S677NF0RA01551-part3',
'/dev/disk/by-id/nvme-KINGSTON_SNVS500G_50026B7685A7B988-part1',
],
},
'cache': {
'devices': [
'/dev/disk/by-id/nvme-SAMSUNG_MZVL22T0HBLB-00B00_S677NF0RA01551-part4',
],
},
},
},
},