shedd / duckpan-vagrant

Vagrant + Chef virtual development environment for DuckDuckGo (http://duckduckhack.com)
Apache License 2.0
5 stars 5 forks source link

Extract configuration from Vagrantfile #1

Open shedd opened 10 years ago

shedd commented 10 years ago

Right now, Vagrantfiles are a mix of configuration of the guest machine being built + personal local configuration.

As in this commit setting up a synced folder - https://github.com/shedd/duckpan-vagrant/commit/d2159616b3f7d1192a1fc4905d10013a8e376755 - it would be nice to be able to have the specific path extracted out to environment variables or other external configuration.

Then we could have a env_config.yml.example file checked into the repo, making it easy to separate personal configuration from configuration of the guest machine.

shedd commented 10 years ago

I thought the Dotenv gem (https://github.com/bkeepers/dotenv) seemed like a potential option for this, but couldn't get it working within the context of a Vagrantfile. WIP branch here: https://github.com/shedd/duckpan-vagrant/compare/master...dotenv

shedd commented 10 years ago

Made some improvements by moving "personal" config to the top of Vagrantfile: https://github.com/shedd/duckpan-vagrant/commit/1b3175ac27d03d2257727c8360b11dbe34ecd2ca