#!/bin/bash
-signerLocation=self
-devPkgs=""
-targetHost="$1"
-
-function ssh_target {
- ssh -i vm-key "$to" "$@"
-}
-
-function install_nre {
- ./installNRE "$targetHost"
-}
-function read_activation_link {
- read -rp "Link: " link
- printf '%s\n' "$link"
-}
-function configure {
- ssh_target -t 'bash conf-puppet --force'
- ssh_target 'sed -i "s%\$signerLocation = '".*'"'%\$signerLocation = '"'$signerLocation'"'%" environments/production/manifests/ip.pp'
-}
-function do_reset_vm {
- read -rp "Please reset your VM and confirm by pressing enter." _
-}
-function execute-bootstrap-user {
- ssh_target -t 'bash bootstrap-user'
-}
-
+targetHost=$1
+targetHost=${targetHost%/}
+source config
source "$targetHost/config"
eval $(ssh-agent)