new: [smtp-extern] new charm #33

Closed
bgallet wants to merge 1 commits from bgallet/0k-charms:boris/smtp-extern into master
  1. 15
      smtp-extern/hooks/smtp_server-relation-joined
  2. 4
      smtp-extern/metadata.yml

15
smtp-extern/hooks/smtp_server-relation-joined

@ -0,0 +1,15 @@
#!/bin/bash
host=$(options-get host) || exit 1
port=$(options-get port) || exit 1
secure=$(options-get secure) || exit 1
user=$(options-get user) || exit 1
password=$(options-get password) || exit 1
relation-set host "$host" || exit 1
relation-set port "$port" || exit 1
relation-set secure "$secure" || exit 1
relation-set user "$user" || exit 1
relation-set password "$password" || exit 1

4
smtp-extern/metadata.yml

@ -0,0 +1,4 @@
type: run-once
docker-image: docker.0k.io/alpine:3.18
provides:
smtp-server:
Loading…
Cancel
Save