base-repo-get-value

Loads a service configuration from the repository and outputs a single value (for the given key) to STDOUT.

Usage

base-repo-get-value SERVICE KEY

Returns

Returns the value for the key in the service definition.

Example

#
# service must be a zone (have $ZONE set)
if [ -z "$(base-repo-get-value ${service} ZONE)" ]; then
	echo "CRITICAL: service '${service}' is no zone (ZONE not set)" >&2
	exit 1
fi
#