fix: [zato] restart load-balancer after updating the .pem cert

This commit is contained in:
Boris Gallet
2025-09-02 16:18:38 +02:00
parent 1048cb4ba6
commit 120e4aed17
6 changed files with 31 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ DATASTORE_ZATO_DIR="$SERVICE_NAME$ZATO_DIR"
SSH_PASSWORD_FILE="$SERVICE_DATASTORE"/.compose/password/ssh-password
DASHBOARD_PASSWORD_FILE="$SERVICE_DATASTORE"/.compose/password/dashboard-password
IDE_PASSWORD_FILE="$SERVICE_DATASTORE"/.compose/password/ide-password
## Load balancer script in not in /opt/zato/env/qs-1 because this folder is created after launch
RESTART_LOADBALANCER_FILE=/opt/zato/restart-load-balancer.sh
ssh_password=$(generate_or_get_secret "$SSH_PASSWORD_FILE")
dashboard_password=$(generate_or_get_secret "$DASHBOARD_PASSWORD_FILE")
@@ -36,6 +38,8 @@ $SERVICE_NAME:
Zato_SSH_Password: \"$ssh_password\"
Zato_Dashboard_Password: \"$dashboard_password\"
Zato_IDE_Password: \"$ide_password\"
volumes:
- /srv/charm-store/elabore-charms/zato/resources$RESTART_LOADBALANCER_FILE:$RESTART_LOADBALANCER_FILE
"
# uid=$(docker_get_uid "$SERVICE_NAME" "zato")