diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2019-04-23 17:18:49 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2019-04-24 15:24:42 +0000 |
commit | fb8821295183bb3767df4e62b798ccb3c2d222c1 (patch) | |
tree | d69b342fed414f90e9c56bd3eaa3f0d411d1b49e /mcp/config | |
parent | ee63c02fff4bba6278201d1c74c5bc5ea1d5cc37 (diff) |
[iec] Copy full contents of IEC git repo
Previously we only synced the scripts subdir, but going forward
we will need the full contents of the IEC repo on all cluster nodes.
Change-Id: I88edd4885875048d50d28c1eac9fd413dc2b6ffb
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 86024c54e879c6435f1e6c82c0fb1a680050052d)
Diffstat (limited to 'mcp/config')
-rwxr-xr-x | mcp/config/states/akraino_iec | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcp/config/states/akraino_iec b/mcp/config/states/akraino_iec index 6cc010b05..4e30ca582 100755 --- a/mcp/config/states/akraino_iec +++ b/mcp/config/states/akraino_iec @@ -23,8 +23,8 @@ POD_NETWORK_CIDR='100.100.0.0/16' # Avoid overlapping Fuel's PXE/admin net [ -e "${IEC_REPO_PATH}" ] || su - "${IEC_USER}" -c \ "git clone '${IEC_REPO_URI}' '${IEC_REPO_PATH}'" # shellcheck disable=SC2086 -wait_for 3.0 "! salt-cp 'iec*' -C '${IEC_SCRIPTS_PATH}/' \ - '$(dirname ${IEC_SCRIPTS_PATH})' | grep -e False" +wait_for 3.0 "! salt-cp 'iec*' -C '${IEC_REPO_PATH}/' \ + '$(dirname ${IEC_REPO_PATH})' | grep -e False" salt -C 'iec*' cmd.run "chown -R ${IEC_USER}:${IEC_USER} ${IEC_REPO_PATH}" salt -C 'iec*' cmd.run runas="${IEC_USER}" "${IEC_SCRIPTS_PATH}/k8s_common.sh" |