From 81d9e0de20e01e31ef76c94a8f755286732e2b23 Mon Sep 17 00:00:00 2001 From: Bryan Date: Thu, 12 Dec 2013 20:24:22 -0500 Subject: [PATCH] copy secrets from host and updated README to address this need. --- README.md | 9 +++++++++ Vagrantfile | 16 ++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c514fc4..c0de956 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,15 @@ follow: 1. Install [vagrant](http://www.vagrantup.com/) 1.3 or higher +1. Configure external dependencies on the host machine: + * Under `{project_root}/karmaworld/secret/`: + 1. Copy files with the example extension to the corresponding filename + without the example extension (e.g. + `cp filepicker.py.example filepicker.py`) + 1. Modify those files, but ignore `db_settings.py` (Vagrant takes care of that one) + 1. Ensure *.py in `secret/` are never added to the git repo. (.gitignore + should help warn against taking this action) + 1. Use Vagrant to create the virtual machine. * While in `cd {project_root}`, type `vagrant up` diff --git a/Vagrantfile b/Vagrantfile index 036a01a..4da4c74 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -17,9 +17,10 @@ VAGRANTFILE_API_VERSION = "2" # http://serverfault.com/questions/491343/how-can-i-move-my-deploy-key-into-vagrant#comment549259_491345 git_ssh_key = File.read(ENV['HOME'] + '/.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. +# build a shell script that installs prereqs, copies over the host secrets, +# 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 = <