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
  • SERVICE: A key of a service definition in the repository.
  • KEY: The key for the value in the service definition to output.

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
#
 
relax/api/base/base-repo-get-value.txt · Last modified: 2010-02-01 13:00 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki