feat: initial import of RailianceHosts starter
This commit is contained in:
commit
9860735f82
20 changed files with 355 additions and 0 deletions
11
scripts/new-server.sh
Normal file
11
scripts/new-server.sh
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue