diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-09-10 14:56:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-09-10 14:56:30 +0000 |
commit | 531ca8731f9b61e79131bcfab420742b4fe3b494 (patch) | |
tree | d4cc0c36e2d09f50b528069b693d5a08c8677ea8 /mcp/scripts | |
parent | 546d3927a8ecd822b319a8eac1f98983df63eb3a (diff) | |
parent | f7d7eece07de9ba44a0d11c68f0685b60752e4b8 (diff) |
Merge "[submodule] Bump Pharos for maas:machines sync"
Diffstat (limited to 'mcp/scripts')
-rw-r--r-- | mcp/scripts/lib_template.sh | 6 | ||||
m--------- | mcp/scripts/pharos | 0 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mcp/scripts/lib_template.sh b/mcp/scripts/lib_template.sh index 0cfc02fdf..daa04441b 100644 --- a/mcp/scripts/lib_template.sh +++ b/mcp/scripts/lib_template.sh @@ -23,7 +23,8 @@ function do_templates_scenario { local target_lab=$1; shift local target_pod=$1; shift local lab_config_uri=$1; shift - local scenario_dir=$1 + local scenario_dir=$1; shift + local extra_yaml=("$@") BASE_CONFIG_PDF="${lab_config_uri}/labs/${target_lab}/${target_pod}.yaml" BASE_CONFIG_IDF="${lab_config_uri}/labs/${target_lab}/idf-${target_pod}.yaml" @@ -49,6 +50,9 @@ function do_templates_scenario { notify_e "[ERROR] IDF does not match yaml schema!" fi fi + for _yaml in "${extra_yaml[@]}"; do + awk '/^---$/{f=1;next;}f' "${_yaml}" >> "${LOCAL_PDF}" + done if ! "${PHAROS_GEN_CFG}" -y "${LOCAL_PDF}" \ -i "$(dirname "$(readlink -f "${PHAROS_IA}")")" \ -j "${PHAROS_IA}" -v > "${image_dir}/pod_config.yml"; then diff --git a/mcp/scripts/pharos b/mcp/scripts/pharos -Subproject 1b233cfbf7b42aaf951f175e9cf818d2b842856 +Subproject 738497a53b80e3b770457b4160532274fd92438 |