Do config more elegantly
patcon opened this issue · 0 comments
patcon commented
Config is a little confusing. The goals and contraints are like so:
-
A file to start the config's so less-techical folks can tweak common settings. Currently
roles/config.yml
. -
A way to change config fil entries from command line, so that one-liners can be used to set up environment (Easy communication via text channels like README's, issue queues, and irc). Currently done with settings envvars before vagrant commands:
clean=true branch=123-my-feature vagrant provision
-
Ability to keep the config file in the
roles/
directory, since this is one of the directories that is rsync'd to the remote server when using knife-solo. Could also submit patch to knife-solo to fix this, but this is simplest for now.
There a couple approaches:
- Write our own vagrant plugin for using a yml file to inject configs into an entry in chef's node object. The file and location could be configurable, as would the place in the node hierarchy where the data was inserted. Hopefully this would be useful to others.
- Could use an existing plugin. Potentials include: