CORD-1151
remove variables set in platform-install by profile_manifest
generate config on build node
reorder build slightly
Change-Id: I6dadebda073a98e1b74420fc13ad7dd683dfc343
diff --git a/scripts/cord-in-a-box.sh b/scripts/cord-in-a-box.sh
index 8bfe450..45c2f64 100755
--- a/scripts/cord-in-a-box.sh
+++ b/scripts/cord-in-a-box.sh
@@ -208,8 +208,12 @@
# It allows SSH'ing to the machine via 'ssh corddev'
sudo su $USER -c "VAGRANT_CWD=$VAGRANT_CWD vagrant ssh-config corddev prod > $SSHCONFIG"
+ # copy host SSH key to corddev, allow it access on prod (vagrant ssh key already has access)
scp ~/.ssh/id_rsa* corddev:.ssh
ssh corddev "chmod go-r ~/.ssh/id_rsa"
+
+ scp ~/.ssh/id_rsa.pub prod:/tmp/install_id_rsa.pub
+ ssh prod "cat /tmp/install_id_rsa.pub >> ~/.ssh/authorized_keys"
}
function install_head_node() {