instack-undercloud/elements/instack-vm/extra-data.d/50-add-instack-files
2014-09-18 09:52:20 -04:00

21 lines
348 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
ANSWERSFILE=${ANSWERSFILE:-""}
if [ -z "$ANSWERSFILE" ]; then
echo "\$ANSWERSFILE should be defined."
exit 1
fi
file_list="$HOME/.ssh/id_rsa_virt_power
$HOME/.ssh/id_rsa_virt_power.pub
/tmp/deploy-virt-overcloudrc
$ANSWERSFILE
$TE_DATAFILE"
for f in $file_list; do
cp "$f" "$TMP_HOOKS_PATH"
done