
This commit changes trove-integration and the artifacts that were brought over from that repository and brings them into the trove repository. The things (specifically) done in this commit are: 1. get rid of .gitreview; this is no longer a repository of its own, it is a part of the trove repository. 2. Update the readme (README.md) 3. Make the elements work in this directory structure 4. Rename the elements and get rid of the name 'reddwarf', change the name redstack to trovestack 5. Refactor all scripts and make them reflect the new directory structure. Change-Id: Iae67fe231b6c7964ca3f31fc593fc9fa4111d5be
22 lines
1.2 KiB
Bash
Executable File
22 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
# CONTEXT: HOST prior to IMAGE BUILD as SCRIPT USER
|
|
# PURPOSE: stages the bootstrap file and upstart conf file while replacing variables so that guest image is properly
|
|
# configured
|
|
|
|
source $_LIB/die
|
|
|
|
[ -n "$TMP_HOOKS_PATH" ] || die "Temp hook path not set"
|
|
|
|
[ -n "${GUEST_USERNAME}" ] || die "GUEST_USERNAME needs to be set to the user for the guest image"
|
|
[ -n "${HOST_SCP_USERNAME}" ] || die "HOST_SCP_USERNAME needs to be set to the user for the host instance"
|
|
[ -n "${CONTROLLER_IP}" ] || die "CONTROLLER_IP needs to be set to the ip address that guests will use to contact the controller"
|
|
[ -n "${ESCAPED_PATH_TROVE}" ] || die "ESCAPED_PATH_TROVE needs to be set to the path to the trove directory on the trovestack host"
|
|
[ -n "${TROVESTACK_SCRIPTS}" ] || die "TROVESTACK_SCRIPTS needs to be set to the trove/integration/scripts dir"
|
|
[ -n "${ESCAPED_GUEST_LOGDIR}" ] || die "ESCAPED_GUEST_LOGDIR must be set to the escaped guest log dir"
|
|
|
|
sed "s/GUEST_USERNAME/${GUEST_USERNAME}/g;s/GUEST_LOGDIR/${ESCAPED_GUEST_LOGDIR}/g;s/HOST_SCP_USERNAME/${HOST_SCP_USERNAME}/g;s/CONTROLLER_IP/${CONTROLLER_IP}/g;s/PATH_TROVE/${ESCAPED_PATH_TROVE}/g" ${TROVESTACK_SCRIPTS}/files/trove-guest.systemd.conf > ${TMP_HOOKS_PATH}/trove-guest.service
|