feat: initial import of RailianceHosts starter

This commit is contained in:
Bernd Worsch 2025-09-13 20:26:11 +02:00
commit 9860735f82
20 changed files with 355 additions and 0 deletions

11
scripts/new-server.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
NAME="${1:-}"
if [[ -z "$NAME" ]]; then
echo "Usage: scripts/new-server.sh <name>"
exit 1
fi
yq -i '.servers += [{ "name": "'$NAME'", "labels": [], "role": "generic", "region": "nbg1", "type": "cpx21", "image": "ubuntu-24.04", "ssh_user": "admin"}]' inventory/servers.yaml
git add inventory/servers.yaml
git commit -m "Add server ${NAME}"
echo "Added ${NAME}. Run: make apply"

10
scripts/sops.sh Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
case "${1:-}" in
edit) sops inventory/group_vars/secrets.sops.yaml ;;
rotate) sops --rotate --in-place inventory/group_vars/secrets.sops.yaml ;;
*)
echo "Usage: scripts/sops.sh [edit|rotate]"
;;
esac