From 34c149a145c245a6a2d33e411726c5f5cdbc7609 Mon Sep 17 00:00:00 2001 From: "Wayne E. Seguin" Date: Tue, 16 Aug 2022 19:32:57 -0400 Subject: [PATCH] Added ops/ file support. --- hooks/blueprint | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/hooks/blueprint b/hooks/blueprint index 2195901..d0b64e1 100755 --- a/hooks/blueprint +++ b/hooks/blueprint @@ -2,7 +2,6 @@ set -eu declare -a merge -validate_features # none merge=( manifests/vault.yml manifests/releases/safe.yml ) @@ -25,10 +24,25 @@ EOF ) > manifests/static_ips.yml merge+=( manifests/static_ips.yml ) fi + case "$(bosh_cpi)" in (azure*) merge+=( manifests/azure.yml ) ;; esac +for want in ${GENESIS_REQUESTED_FEATURES}; do + case "${want}" in + (*) + if [[ -f "${GENESIS_ROOT}/ops/${want}.yml" ]] ; then + merge+=( "${GENESIS_ROOT}/ops/${want}.yml" ) + else + abort=1 + describe >&2 \ + "#R{[ERROR]} The #c{$want} feature is invalid. See the manual and ops/ directory for a list of valid features." + fi + ;; + esac +done + echo "${merge[@]}"