sync dari sicabe-doc/deploy @ bc1a6e6

This commit is contained in:
2026-10-11 13:59:47 +07:00
parent 4ca7a9a58e
commit cbabe96061
29 changed files with 1210 additions and 650 deletions
+10 -3
View File
@@ -69,7 +69,10 @@ TRINO_SVC_SEED_PASSWORD=$(openssl rand -hex 8)
TRINO_SVC_DBT_PASSWORD=$(openssl rand -hex 8)
TRINO_SVC_AIRFLOW_PASSWORD=$(openssl rand -hex 8)
TRINO_SVC_OM_PASSWORD=$(openssl rand -hex 8)
TRINO_OAUTH_STATE_KEY=$(openssl rand -hex 32)
TRINO_OAUTH_STATE_KEY=$(openssl rand -hex 32)
GRAFANA_ADMIN_PASSWORD=$(openssl rand -hex 8)
STARROCKS_ROOT_PASSWORD=$(openssl rand -hex 16)
# OM 2.0.x menegakkan kebijakan password (min 8 karakter + huruf besar + huruf
# kecil + digit + karakter spesial). `openssl rand -hex` hanya menghasilkan
# 0-9a-f sehingga TIDAK memenuhi kebijakan itu — password harus dirakit agar
@@ -859,8 +862,8 @@ run_host() {
# hilang → mis. Airflow IsADirectoryError). Isi ditulis setelah .env host di-source.
sicabe_ensure_file_mount "${dir}/config/trino/password.db" 644
echo -e "${WARN} Jalankan ini HANYA di host '${name}'."
echo -e "${WARN} Pilot berdampingan di host yang SAMA tidak cukup dipisah network/port:"
echo -e "${WARN} RAM tidak cukup untuk dua stack — matikan stack lama lebih dulu (README)."
echo -e "${WARN} Stack single-host & multi-host TIDAK untuk berjalan bersamaan di satu host:"
echo -e "${WARN} matikan stack lama lebih dulu sebelum menyalakan yang baru."
# ── PRECEDENCE (bug nyata yang dilaporkan dari server) ──────────────────────
# Compose memberi prioritas pada variabel **SHELL** di atas `--env-file`. Skrip ini
# sudah men-source config/environment.defaults.sh, yang mengekspor
@@ -905,9 +908,13 @@ run_host() {
# over SSH. Dijalankan di host CONTROL (master installer). Target = semua host di
# cluster.yml KECUALI host ini (dideteksi dari kecocokan alamat lokal) — atau satu
# host saja via --host. Aman diulang (rsync idempoten).
# Tujuan default (--dest) = CERMIN lokasi repo ini di bawah $HOME (lihat
# sicabe_default_dest) — jadi nama repo TIDAK dipatok: `sicabe-core` (repo
# distribusi bersih) → `~/sicabe-core/deploy`. Timpa dengan `--dest`.
sync_hosts() {
local inv="${SCRIPT_DIR}/cluster.yml" dest="~/sicabe-doc/deploy" user="${USER:-root}" \
local inv="${SCRIPT_DIR}/cluster.yml" dest user="${USER:-root}" \
only_host="" do_delete=0 dry=0
dest="$(sicabe_default_dest "${SCRIPT_DIR}")"
shift
while [[ $# -gt 0 ]]; do
case "$1" in