Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a02994-7685-7940-bf34-3555b8256018
12 lines
362 B
Bash
12 lines
362 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
NAME="${1:-}"
|
|
if [[ -z "$NAME" ]]; then
|
|
echo "Usage: scripts/new-server.sh <name>"
|
|
exit 1
|
|
fi
|
|
python3 scripts/new_host.py --name "$NAME" --type cpx21 --region nbg1 \
|
|
--role generic --image ubuntu-24.04 --user admin
|
|
git add inventory/servers.yaml
|
|
git commit -m "Add server ${NAME}"
|
|
echo "Added ${NAME}. Run: make apply"
|