From: Bryan Date: Fri, 13 Dec 2013 01:24:22 +0000 (-0500) Subject: copy secrets from host and updated README to address this need. X-Git-Tag: release-20150131~386^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81d9e0de20e01e31ef76c94a8f755286732e2b23;p=oweals%2Fkarmaworld.git copy secrets from host and updated README to address this need. --- 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 = <