-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
73 lines (55 loc) · 3.26 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
deploy-signoz:
#!/usr/bin/env bash
pushd /home/nic/third-party/signoz/deploy/
# DOCKER_HOST="ssh://koober" docker-compose -f /home/nic/third-party/signoz/deploy/docker/clickhouse-setup/docker-compose.yaml up -d
docker-compose -f /home/nic/third-party/signoz/deploy/docker/clickhouse-setup/docker-compose.yaml up -d
popd
test-ping-prd:
ansible-playbook ./playbooks/ping.yaml -i inventory/all/hosts --limit production
test-ping-dev:
ansible-playbook ./playbooks/ping.yaml -i inventory/all/hosts --limit development
setup-dev-server:
ansible-playbook -bK ./playbooks/server-setup.yaml -i inventory/all/hosts --limit development -v
launch-chatgpt-telegram-bot:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags chatgpt_telegram_bot
launch-gotify:
ansible-playbook ./playbooks/deploy-applications.yaml -i inventory/all/hosts --limit production --tags gotify
launch-manyfold:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags manyfold
launch-frigate:
ansible-playbook ./playbooks/deploy-applications.yaml -i inventory/all/hosts --limit production --tags frigate
launch-jellystat:
ansible-playbook ./playbooks/deploy-applications.yaml -i inventory/all/hosts --limit production --tags jellystat
launch-amcrest-sync:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags amcrest-sync
launch-container-registry:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags container-registry
launch-vocal-remover-app:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags vocal-remover-app
launch-archivebox:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags archivebox
launch-stirlingtools:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags stirlingtools
# launching remote ML container just with compose - translating to ansible feels not worth it right now
launch-immich:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags immich
echo "make sure remote ML container is started with compose"
# cd ./docker-composes/immich-remote-ml
# docker compose up -d
# cd -
launch-memes:
ansible-playbook ./playbooks/deploy-applications.yaml -K -i inventory/all/hosts --limit production --tags immich-memes
get-vault-key:
bws secret get $HOMELAB_BOT_VAULT_KEY_ID | jq -r '.value'
encrypt:
just get-vault-key >> key
ansible-vault encrypt inventory/all/group_vars/all.yml --vault-password-file key
ansible-vault encrypt inventory/all/group_vars/production.yml --vault-password-file key
ansible-vault encrypt inventory/all/group_vars/development.yml --vault-password-file key
rm key
decrypt:
just get-vault-key >> key
ansible-vault decrypt inventory/all/group_vars/all.yml --vault-password-file key
ansible-vault decrypt inventory/all/group_vars/production.yml --vault-password-file key
ansible-vault decrypt inventory/all/group_vars/development.yml --vault-password-file key
rm key