Look for config file with the bundle name

This commit is contained in:
Daniel Berteaud 2024-02-03 19:59:46 +01:00
parent a798cf53c7
commit 5d2d569ca0
1 changed files with 7 additions and 1 deletions

8
ctctl
View File

@ -592,7 +592,9 @@ ctctl_render_templates(){
# so they will take precedence
I=0
local VAR_FILES=""
for FILE in ${NOMAD_NAMESPACE}.yml \
for FILE in ${NAME}.yml \
${NAME}.yaml \
${NOMAD_NAMESPACE}.yml \
${NOMAD_NAMESPACE}.yaml \
variables.yml \
variables.yaml \
@ -600,10 +602,14 @@ ctctl_render_templates(){
../${NOMAD_NAMESPACE}.yaml \
../variables.yml \
../variables.yaml \
bundles/*-${NAME}-conf/${NAME}.yml \
bundles/*-${NAME}-conf/${NAME}.yaml \
bundles/*-${NAME}-conf/variables.yml \
bundles/*-${NAME}-conf/variables.yaml \
bundles/${NAME}/variables.yml \
bundles/${NAME}/variables.yaml \
bundles/*/${NAME}.yml \
bundles/*/${NAME}.yaml \
bundles/*/variables.yml \
bundles/*/variables.yaml; do
if [ -e ${FILE} ]; then