This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Railiance — sanitized bootstrap script for creating a Gitea repository.
|
||||
#
|
||||
# PURPOSE:
|
||||
# Creates a repo (default: railiance-bootstrap) in your Gitea (user or org),
|
||||
# Creates a repo (default: railiance-cluster) in your Gitea (user or org),
|
||||
# scaffolds a minimal layout, commits, and pushes the initial content.
|
||||
#
|
||||
# SAFETY NOTES:
|
||||
@@ -25,7 +25,7 @@
|
||||
# ./tools/create_railiance_repo.sh --org coulomb # override org from config
|
||||
#
|
||||
# FLAGS:
|
||||
# --repo <name> : repository name (default: railiance-bootstrap)
|
||||
# --repo <name> : repository name (default: railiance-cluster)
|
||||
# --desc <text> : description (default provided)
|
||||
# --org <orgname> : create under this organization (overrides GITEA_ORG)
|
||||
# --public : create as public repo (default: private)
|
||||
|
||||
@@ -58,7 +58,7 @@ ensure_file "${repo_root}/README.md" RREAD <<'RREAD'
|
||||
Railiance is an opinionated **Infrastructure-as-Code framework** —
|
||||
think *Rails for Ops*: convention over configuration, reproducibility first.
|
||||
|
||||
This repo (`railiance-bootstrap`) is the **entry point**:
|
||||
This repo (`railiance-cluster`) is the **cluster runtime entry point**:
|
||||
from two bare Linux servers, a Git repo, and credentials, you can rebuild
|
||||
a fully automated Kubernetes-based environment.
|
||||
RREAD
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
# Responsibilities:
|
||||
# - Ensure minimal prerequisites (curl, git, jq)
|
||||
# - Discover metadata (panspermia.json or env vars)
|
||||
# - Clone or update the parent repo (default: railiance-bootstrap)
|
||||
# - Clone or update the parent repo (default: railiance-cluster)
|
||||
# - Run furnishing (idempotent) to align housekeeping
|
||||
# - (Optional) handoff to further bootstrap steps
|
||||
#
|
||||
# Usage examples:
|
||||
# ./tools/seed_node.sh
|
||||
# REPO_URL=https://git.example.com/org/railiance-bootstrap.git ./tools/seed_node.sh
|
||||
# REPO_URL=https://git.example.com/org/railiance-cluster.git ./tools/seed_node.sh
|
||||
# ./tools/seed_node.sh --repo-dir /srv/railiance --branch main
|
||||
#
|
||||
# Notes:
|
||||
@@ -86,7 +86,7 @@ fi
|
||||
if [[ -z "${REPO_URL}" ]]; then
|
||||
echo "ERROR: No REPO_URL provided and no panspermia metadata found." >&2
|
||||
echo "Provide one of:" >&2
|
||||
echo " - env REPO_URL=https://git.example.com/org/railiance-bootstrap.git" >&2
|
||||
echo " - env REPO_URL=https://git.example.com/org/railiance-cluster.git" >&2
|
||||
echo " - or a panspermia.json with .parent_body.repo_url" >&2
|
||||
exit 1
|
||||
fi
|
||||
@@ -129,7 +129,7 @@ Next steps (manual, for now):
|
||||
4) Prepare GitOps operator (ArgoCD/Flux) pointing to this repo
|
||||
|
||||
Hints:
|
||||
- To use SSH instead of HTTPS, set REPO_URL=git@your-gitea:org/railiance-bootstrap.git
|
||||
- To use SSH instead of HTTPS, set REPO_URL=git@your-gitea:org/railiance-cluster.git
|
||||
- If using HTTPS, set up 'git config --global credential.helper cache|store'
|
||||
- For air-gapped: copy a Spore bundle, extract, then run this seed script
|
||||
|
||||
|
||||
Reference in New Issue
Block a user