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,21 @@
#!/bin/bash
set -e
host=$(relation-get host) || exit 1
port=$(relation-get port) || exit 1
user=$(relation-get login) || exit 1
password="$(relation-get password)" || exit 1
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
environment:
SMTP_USERNAME: \"$user\"
SMTP_PASS: \"${password//\$/\$\$}\"
SMTP_HOST: \"$host\"
SMTP_PORT: \"$port\"
#SMTP_SECURE: \"false\"
"