mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 15:24:31 +07:00
de1f7176dd
I want to set up a mesh with multiple sites, so I need static peer configurations instead of those generated by the WireGuard container.
49 lines
933 B
Makefile
49 lines
933 B
Makefile
.POSIX:
|
|
.PHONY: *
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
KUBECONFIG = $(shell pwd)/metal/kubeconfig.yaml
|
|
KUBE_CONFIG_PATH = $(KUBECONFIG)
|
|
|
|
default: metal system external smoke-test post-install clean
|
|
|
|
configure:
|
|
./scripts/configure
|
|
git status
|
|
|
|
metal:
|
|
make -C metal
|
|
|
|
system:
|
|
make -C system
|
|
|
|
external:
|
|
make -C external
|
|
|
|
smoke-test:
|
|
make -C test filter=Smoke
|
|
|
|
post-install:
|
|
@./scripts/hacks
|
|
|
|
# TODO maybe there's a better way to manage backup with GitOps?
|
|
backup:
|
|
./scripts/backup --action setup --namespace=actualbudget --pvc=actualbudget-data
|
|
./scripts/backup --action setup --namespace=jellyfin --pvc=jellyfin-data
|
|
|
|
restore:
|
|
./scripts/backup --action restore --namespace=actualbudget --pvc=actualbudget-data
|
|
./scripts/backup --action restore --namespace=jellyfin --pvc=jellyfin-data
|
|
|
|
test:
|
|
make -C test
|
|
|
|
clean:
|
|
docker compose --project-directory ./metal/roles/pxe_server/files down
|
|
|
|
docs:
|
|
mkdocs serve
|
|
|
|
git-hooks:
|
|
pre-commit install
|