new: [opensem] add charm
This commit is contained in:
17
opensem/hooks/meilisearch_engine-relation-joined
Executable file
17
opensem/hooks/meilisearch_engine-relation-joined
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
. lib/common
|
||||
|
||||
set -e
|
||||
|
||||
master_key=$(service:password:get "${TARGET_SERVICE_NAME}" "master_key" internal) || exit 1
|
||||
|
||||
cat <<EOF >> "${OPENSEM_CONFIG_FILE}"
|
||||
|
||||
|
||||
## meilisearch settings
|
||||
|
||||
SCOUT_DRIVER=meilisearch
|
||||
MEILISEARCH_HOST=http://${TARGET_SERVICE_NAME}:7700
|
||||
MEILISEARCH_KEY=${master_key}
|
||||
EOF
|
||||
Reference in New Issue
Block a user