feat(remnawave): declarative panel on core-net and SelfSteal node on ger-nod-02
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-rus-central / deploy (push) Canceled after 0s
ansible-core-net / deploy (push) Failing after 26s

Add Remnawave panel+subscription behind Traefik (rw/sub.gunihome.ru), API bootstrap into Infisical, and ger-nod-02 node with Cloudflare DNS-01 SelfSteal (yali.gunis.top). Leaves remna.gunihome.ru on Golova untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
karpenokandCursor committed 2026-11-11 22:15:45 +07:00
1 parent a0ec829eee
commit 8caaddc779
25 files changed
+1401 -5

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ before=${3:-}
after=${4:-}
case "$machine" in
core-net | core-secrets | core-mon | rus-central | opnsense) ;;
core-net | core-secrets | core-mon | rus-central | ger-nod-02 | opnsense) ;;
*)
echo "Неизвестная машина: $machine" >&2
exit 2
+33 -1
View File
@@ -9,7 +9,7 @@ before=${3:-}
after=${4:-}
case "$machine" in
core-net | core-secrets | core-mon | rus-central | opnsense) ;;
core-net | core-secrets | core-mon | rus-central | ger-nod-02 | opnsense) ;;
*)
echo "Неизвестная машина: $machine" >&2
exit 2
@@ -55,6 +55,13 @@ case "$machine" in
extra+=(-e "traefik_dashboard_auth=${TRAEFIK_DASHBOARD_AUTH}")
fi
extra+=(-e "authentik_enabled=false")
eval "$(infisical export --domain="${INFISICAL_DOMAIN}" --token="${TOKEN}" --env=prod --projectId="${INFISICAL_PROJECT_ID}" --path="/services/remnawave" --format=dotenv-export --silent 2>/dev/null || true)"
export REMNAWAVE_APP_SECRET="${REMNAWAVE_APP_SECRET:-}"
export REMNAWAVE_POSTGRES_PASSWORD="${REMNAWAVE_POSTGRES_PASSWORD:-}"
export REMNAWAVE_METRICS_PASS="${REMNAWAVE_METRICS_PASS:-}"
export REMNAWAVE_WEBHOOK_SECRET_HEADER="${REMNAWAVE_WEBHOOK_SECRET_HEADER:-}"
export REMNAWAVE_API_TOKEN="${REMNAWAVE_API_TOKEN:-}"
export REMNANODE_SECRET_KEY="${REMNANODE_SECRET_KEY:-}"
;;
core-secrets)
eval "$(infisical export --domain="${INFISICAL_DOMAIN}" --token="${TOKEN}" --env=prod --projectId="${INFISICAL_PROJECT_ID}" --path="/services/infisical" --format=dotenv-export --silent)"
@@ -94,6 +101,31 @@ case "$machine" in
export OPNSENSE_API_KEY="${OPNSENSE_API_KEY:-}"
export OPNSENSE_API_SECRET="${OPNSENSE_API_SECRET:-}"
;;
ger-nod-02)
eval "$(infisical export --domain="${INFISICAL_DOMAIN}" --token="${TOKEN}" --env=prod --projectId="${INFISICAL_PROJECT_ID}" --path="/services/remnawave" --format=dotenv-export --silent)"
eval "$(infisical export --domain="${INFISICAL_DOMAIN}" --token="${TOKEN}" --env=prod --projectId="${INFISICAL_PROJECT_ID}" --path="/services/cloudflare" --format=dotenv-export --silent)"
export REMNANODE_SECRET_KEY="${REMNANODE_SECRET_KEY:-}"
export CLOUDFLARE_API="${CLOUDFLARE_API:-}"
export PASS_GER_NOD_02="${PASS_GER_NOD_02:-}"
if [ -z "${REMNANODE_SECRET_KEY}" ]; then
echo "В Infisical (/services/remnawave) нет REMNANODE_SECRET_KEY — сначала прогоните ansible-core-net (роль remnawave)." >&2
exit 1
fi
if [ -z "${CLOUDFLARE_API}" ]; then
echo "В Infisical (/services/cloudflare) нет CLOUDFLARE_API" >&2
exit 1
fi
# sshpass нужен для первичного входа по паролю
if [ -n "${PASS_GER_NOD_02}" ] && ! command -v sshpass >/dev/null 2>&1; then
apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq sshpass >/dev/null
fi
# Первичный вход по паролю; после роли host остаётся только ключ раннера.
if [ -n "${PASS_GER_NOD_02}" ]; then
export ANSIBLE_HOST_KEY_CHECKING=False
extra+=(-e "ansible_password=${PASS_GER_NOD_02}")
extra+=(-e "ansible_ssh_common_args=-o PreferredAuthentications=publickey,password -o StrictHostKeyChecking=accept-new")
fi
;;
esac
root=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd)