diff --git a/Makefile b/Makefile index 16fa2b1..964bea0 100644 --- a/Makefile +++ b/Makefile @@ -153,11 +153,6 @@ new-host: ## Add a new host quickly: make new-host NAME=core1 TYPE=cpx11 REGION= @python3 scripts/new_host.py --name "$(NAME)" --type "$(TYPE)" --region "$(REGION)" --role "$(ROLE)" --image "$(IMG)" --user "$(USER)" @echo "✔ Added host $(NAME) to inventory/servers.yaml" -tunnel: ## Open reverse SSH tunnel: forwards local state-hub (127.0.0.1:8000) to the first host in inventory - @python3 -c "import yaml; s=yaml.safe_load(open('inventory/servers.yaml'))['servers'][0]; print(s['ssh_user']+'@'+s['ip'])" | \ - xargs -I{} ssh -R 8000:127.0.0.1:8000 {} - @echo "Tunnel closed." - remote-set: ## Set origin to your Gitea repo (GITEA/OWNER/REPO vars) git remote remove origin 2>/dev/null || true git remote add origin https://$(GITEA)/$(OWNER)/$(REPO).git