new: [outline] add new charm

This commit is contained in:
default
2024-05-21 11:04:48 +02:00
committed by default
parent ea46224bdc
commit 02755e516c
7 changed files with 350 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -e
# USER="$(relation-get user)"
# DBNAME="$(relation-get dbname)"
# PASSWORD=$(relation-get password) || {
# err "Can't get password for '$SERVICE_NAME' from '$TARGET_SERVICE_NAME'."
# exit 1
# }
PASSWORD=$(relation-get password) || {
err "Can't get password for '$SERVICE_NAME' from '$TARGET_SERVICE_NAME'."
exit 1
}
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
environment:
REDIS_URL: redis://:$PASSWORD@$TARGET_SERVICE_NAME:6379
"
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."