Skip to content

Commit

Permalink
Added ops/ file support.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Aug 16, 2022
1 parent a219962 commit 34c149a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion hooks/blueprint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -eu

declare -a merge
validate_features # none

merge=( manifests/vault.yml
manifests/releases/safe.yml )
Expand All @@ -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[@]}"

0 comments on commit 34c149a

Please sign in to comment.