43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
###############################################################################
|
|
# config/targets/prod.env.exemple
|
|
###############################################################################
|
|
|
|
# SSH bootstrap cible
|
|
TARGET_HOST=<TARGET_HOST>
|
|
TARGET_PORT=22
|
|
TARGET_BOOTSTRAP_USER=<BOOTSTRAP_USER>
|
|
TARGET_BOOTSTRAP_SSH_KEY=/home/<LOCAL_USER>/.ssh/id_ed25519_target_prod
|
|
TARGET_RUNTIME_USER=<RUNTIME_USER>
|
|
|
|
# Bootstrap
|
|
TARGET_ENABLE_BOOTSTRAP=yes
|
|
TARGET_BOOTSTRAP_ALLOW_PASSWORDLESS_SUDO=yes
|
|
|
|
# Repo local cible
|
|
TARGET_REPO_DIR=/home/<RUNTIME_USER>/RebuildBdd
|
|
TARGET_ENV_FILE=/home/<RUNTIME_USER>/RebuildBdd/.env
|
|
|
|
# PostgreSQL cible
|
|
TARGET_ENV_NAME=PROD
|
|
TARGET_PGHOST=127.0.0.1
|
|
TARGET_PGPORT=5432
|
|
TARGET_PGUSER=<PGUSER>
|
|
TARGET_PGPASSWORD=change_me_pg_password
|
|
TARGET_DBS="sirh inventory ferme"
|
|
|
|
# Backup cible
|
|
TARGET_BACKUP_SUBDIR=bdd-prod
|
|
|
|
# Logs / tmp / ssh cible
|
|
TARGET_BACKUP_LOG_DIR=/home/<RUNTIME_USER>/logs/rebuild_bdd
|
|
TARGET_LOCAL_RESTORE_BASE_DIR=/home/<RUNTIME_USER>/RebuildBdd/restore_tmp
|
|
TARGET_SSH_KEY=/home/<RUNTIME_USER>/.ssh/id_ed25519_backup_readonly
|
|
|
|
# Options cible
|
|
TARGET_REMOTE_ROLES_DIR_NAME=user
|
|
TARGET_EXCLUDED_RESTORE_ROLES="postgres"
|
|
TARGET_AUTO_INSTALL_POSTGRES=yes
|
|
TARGET_AUTO_CREATE_PGUSER=yes
|
|
TARGET_PGUSER_SUPERUSER=no
|
|
TARGET_AUTO_CONFIGURE_SUDOERS=no
|