From 564b7e038c326144f663442fbbc21cfb070b261a Mon Sep 17 00:00:00 2001 From: Bryan Date: Wed, 11 Dec 2013 01:30:03 -0500 Subject: [PATCH] closing #191 by adding the VM's private SSH key into the VM. --- Vagrantfile | 21 ++++++++++++++++++++- fabfile.py | 2 ++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index b7f2b05..9cbf0be 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -12,12 +12,31 @@ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" -# Install fabric so that the KarmaWorld fabfile may be run. +# Copy the vagrant SSH key into the VM so vagrant can SSH to localhost within +# the VM. Continued in the shell script below. +# http://serverfault.com/questions/491343/how-can-i-move-my-deploy-key-into-vagrant#comment549259_491345 +git_ssh_key = File.read('~/.vagrant.d/insecure_private_key'); # build a shell script that installs prereqs, configures the database, sets up # the user/group associations, pulls in the code from the host machine, sets up # some external dependency configs, and then runs fabric. shellscript = <