Initial commit: VaultMesh Skills collection
Collection of operational skills for VaultMesh infrastructure including: - backup-sovereign: Backup and recovery operations - btc-anchor: Bitcoin anchoring - cloudflare-tunnel-manager: Cloudflare tunnel management - container-registry: Container registry operations - disaster-recovery: Disaster recovery procedures - dns-sovereign: DNS management - eth-anchor: Ethereum anchoring - gitea-bootstrap: Gitea setup and configuration - hetzner-bootstrap: Hetzner server provisioning - merkle-forest: Merkle tree operations - node-hardening: Node security hardening - operator-bootstrap: Operator initialization - proof-verifier: Cryptographic proof verification - rfc3161-anchor: RFC3161 timestamping - secrets-vault: Secrets management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
35
cloudflare-tunnel-manager/scripts/00_preflight.sh
Normal file
35
cloudflare-tunnel-manager/scripts/00_preflight.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
SKILL_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
source "$SCRIPT_DIR/_common.sh"
|
||||
|
||||
: "${CF_API_TOKEN:=}"
|
||||
: "${CF_ACCOUNT_ID:=}"
|
||||
: "${TUNNEL_NAME:=}"
|
||||
: "${ZONE_NAME:=}"
|
||||
: "${HOSTNAME:=}"
|
||||
: "${LOCAL_SERVICE:=}"
|
||||
: "${CONFIG_DIR:=$SKILL_ROOT/outputs/config}"
|
||||
: "${SERVICE_NAME:=cloudflared-tunnel}"
|
||||
|
||||
main() {
|
||||
log_info "Starting 00_preflight.sh"
|
||||
cf_env_check
|
||||
[[ -n "$TUNNEL_NAME" ]] || die "TUNNEL_NAME is required."
|
||||
[[ -n "$ZONE_NAME" ]] || die "ZONE_NAME is required."
|
||||
[[ -n "$HOSTNAME" ]] || die "HOSTNAME is required."
|
||||
[[ -n "$LOCAL_SERVICE" ]] || die "LOCAL_SERVICE is required."
|
||||
|
||||
need cloudflared
|
||||
need curl
|
||||
need jq
|
||||
need systemctl || log_warn "systemctl not found (service phase will not work)."
|
||||
|
||||
mkdir -p "$SKILL_ROOT/outputs"
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
log_info "Preflight OK."
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user