[iec] Copy full contents of IEC git repo 77/67677/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 23 Apr 2019 15:18:49 +0000 (17:18 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 23 Apr 2019 15:19:38 +0000 (17:19 +0200)
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>
mcp/config/states/akraino_iec

index 6cc010b..4e30ca5 100755 (executable)
@@ -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"