fix: [zato] restart load-balancer after updating the .pem cert
This commit is contained in:
BIN
zato/hooks/.init.swp
Normal file
BIN
zato/hooks/.init.swp
Normal file
Binary file not shown.
@@ -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")
|
||||
|
Reference in New Issue
Block a user