bridgehead/minimal/modules/dnpm-setup.sh

23 lines
859 B
Bash
Raw Permalink Normal View History

2023-05-10 12:54:05 +02:00
#!/bin/bash
if [ -n "${ENABLE_DNPM}" ]; then
2023-05-19 13:53:03 +02:00
log DEBUG "DNPM setup detected (Beam.Connect) -- will start Beam and Beam.Connect for DNPM."
2023-05-17 11:26:55 +02:00
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose.yml"
2023-05-10 12:54:05 +02:00
# Set variables required for Beam-Connect
DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
DNPM_BROKER_ID="dnpm-aachen-broker.samply.de"
2023-05-15 13:43:01 +02:00
DNPM_BROKER_URL="https://${DNPM_BROKER_ID}"
2023-12-15 10:41:11 +01:00
if [ -z ${BROKER_URL_FOR_PREREQ+x} ]; then
BROKER_URL_FOR_PREREQ=$DNPM_BROKER_URL
log DEBUG "No Broker for clock check set; using $DNPM_BROKER_URL"
fi
2023-05-15 13:43:01 +02:00
DNPM_PROXY_ID="${SITE_ID}.${DNPM_BROKER_ID}"
2024-02-21 16:04:00 +01:00
# If the DNPM_NO_PROXY variable is set, prefix it with a comma (as it gets added to a comma separated list)
if [ -n "${DNPM_NO_PROXY}" ]; then
DNPM_ADDITIONAL_NO_PROXY=",${DNPM_NO_PROXY}"
else
DNPM_ADDITIONAL_NO_PROXY=""
fi
2023-05-10 12:54:05 +02:00
fi