reinstall home server and backups and many fixes
This commit is contained in:
parent
f55d46281c
commit
72f560809b
9 changed files with 48 additions and 10 deletions
1
.envrc
1
.envrc
|
@ -3,6 +3,7 @@
|
||||||
python3 -m venv .venv
|
python3 -m venv .venv
|
||||||
source ./.venv/bin/activate
|
source ./.venv/bin/activate
|
||||||
PATH_add .venv/bin
|
PATH_add .venv/bin
|
||||||
|
PATH_add bin
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
|
|
||||||
rm -rf .cache/bw/git_deploy
|
rm -rf .cache/bw/git_deploy
|
||||||
|
|
|
@ -11,10 +11,6 @@ downloads['/usr/local/bin/gitea'] = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
users['git'] = {
|
|
||||||
'home': '/home/git',
|
|
||||||
}
|
|
||||||
|
|
||||||
directories['/var/lib/gitea'] = {
|
directories['/var/lib/gitea'] = {
|
||||||
'owner': 'git',
|
'owner': 'git',
|
||||||
'mode': '0700',
|
'mode': '0700',
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
database_password = repo.vault.password_for(f'{node.name} postgresql gitea')
|
database_password = repo.vault.password_for(f'{node.name} postgresql gitea')
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'git': {
|
||||||
|
'needed_by': {
|
||||||
|
'svc_systemd:gitea',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
'gitea': {
|
'gitea': {
|
||||||
'database': {
|
'database': {
|
||||||
'host': 'localhost',
|
'host': 'localhost',
|
||||||
|
@ -52,6 +61,11 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'users': {
|
||||||
|
'git': {
|
||||||
|
'home': '/home/git',
|
||||||
|
},
|
||||||
|
},
|
||||||
'zfs': {
|
'zfs': {
|
||||||
'datasets': {
|
'datasets': {
|
||||||
'tank/gitea': {
|
'tank/gitea': {
|
||||||
|
|
|
@ -4,6 +4,7 @@ defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
'packages': {
|
'packages': {
|
||||||
'influxdb2': {},
|
'influxdb2': {},
|
||||||
|
'influxdb2-cli': {},
|
||||||
},
|
},
|
||||||
'sources': {
|
'sources': {
|
||||||
'deb https://repos.influxdata.com/debian {release} stable',
|
'deb https://repos.influxdata.com/debian {release} stable',
|
||||||
|
|
|
@ -5,6 +5,7 @@ defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
'packages': {
|
'packages': {
|
||||||
'php': {},
|
'php': {},
|
||||||
|
'php-redis': {},
|
||||||
'php-fpm': {},
|
'php-fpm': {},
|
||||||
'php-curl': {},
|
'php-curl': {},
|
||||||
'php-gd': {},
|
'php-gd': {},
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
defaults = {
|
defaults = {
|
||||||
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'python3-pip': {},
|
||||||
|
},
|
||||||
|
},
|
||||||
'postgresql': {
|
'postgresql': {
|
||||||
'roles': {
|
'roles': {
|
||||||
'steam_chat_logger': {
|
'steam_chat_logger': {
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
defaults = {
|
||||||
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'wakeonlan': {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'users/wol',
|
'users/wol',
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
'id': '9cf52515-63a1-4659-a8ec-6c3c881727e5',
|
'id': '9cf52515-63a1-4659-a8ec-6c3c881727e5',
|
||||||
'network': {
|
'network': {
|
||||||
'internal': {
|
'internal': {
|
||||||
'interface': 'enp1s0',
|
'interface': 'enp0s31f6',
|
||||||
'ipv4': '10.0.0.5/24',
|
'ipv4': '10.0.0.5/24',
|
||||||
'gateway4': '10.0.0.1',
|
'gateway4': '10.0.0.1',
|
||||||
'mac': 'd8:cb:8a:e7:be:c6',
|
'mac': '4c:cc:6a:d5:96:f8',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'backup-server': {
|
'backup-server': {
|
||||||
|
|
|
@ -16,11 +16,10 @@
|
||||||
'build-agent',
|
'build-agent',
|
||||||
'crystal',
|
'crystal',
|
||||||
'gitea',
|
'gitea',
|
||||||
'gollum',
|
# 'gollum',
|
||||||
'grafana',
|
'grafana',
|
||||||
'influxdb2',
|
'influxdb2',
|
||||||
'mirror',
|
'mirror',
|
||||||
'mosquitto',
|
|
||||||
'postgresql',
|
'postgresql',
|
||||||
'redis',
|
'redis',
|
||||||
'smartctl',
|
'smartctl',
|
||||||
|
@ -36,7 +35,7 @@
|
||||||
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
||||||
'network': {
|
'network': {
|
||||||
'internal': {
|
'internal': {
|
||||||
'interface': 'enp0s31f6',
|
'interface': 'enp42s0',
|
||||||
'ipv4': '10.0.0.2/24',
|
'ipv4': '10.0.0.2/24',
|
||||||
'gateway4': '10.0.0.1',
|
'gateway4': '10.0.0.1',
|
||||||
},
|
},
|
||||||
|
@ -121,7 +120,7 @@
|
||||||
},
|
},
|
||||||
'vm': {
|
'vm': {
|
||||||
'cores': 2,
|
'cores': 2,
|
||||||
'ram': 16192,
|
'ram': 32384,
|
||||||
},
|
},
|
||||||
'wireguard': {
|
'wireguard': {
|
||||||
'my_ip': '172.30.0.2/32',
|
'my_ip': '172.30.0.2/32',
|
||||||
|
@ -136,6 +135,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'zfs': {
|
'zfs': {
|
||||||
|
'zfs_arc_max_percent': 75,
|
||||||
'pools': {
|
'pools': {
|
||||||
'tank': {
|
'tank': {
|
||||||
'type': 'mirror',
|
'type': 'mirror',
|
||||||
|
@ -144,6 +144,18 @@
|
||||||
'/dev/disk/by-partlabel/zfs-data-2',
|
'/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',
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue