trove/development/bootstrap/bootstrap_init.sh
Michael Basnight caedfab456 Fleshed out the basics for the guest-agent scp firstboot.
* Copying ssh keys from the host to the image
* Added a bootstrap_init.sh which does the scp work to the instance
* Finished the bootstrap.sh so it will upload to glance
* Added a service images table for identifing the current image on create
* Added some dummy guest-agent code for testing purposes
* Added a delete method, which is not finished
2012-03-04 16:02:40 -06:00

9 lines
427 B
Bash

### THINGS TO NOTE
# Make sure the host code is in /src
# Make sure the username is the same as the vm/host
# ** Assuming the username is reddwarf
# Make sure the host/vm bridge is at 10.0.0.1, which is the default devstack bridge
PATH_TO_HOST=/src/reddwarf
sudo -u reddwarf scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r 10.0.0.1:${PATH_TO_HOST}/guest-agent ~reddwarf
python ~reddwarf/guest-agent/agent.py