locomote/gusteau

Environment-specific data_bags

Closed this issue · 1 comments

I'd like to use environment-specific data_bags. I'm happy to code this up, but before I start I just wanted to get your thoughts. Here's what I was thinking:

If the user has an environment_data_bags directory, then look for a directory sharing the name of the current environment (e.g. environment_data_bags/staging). If it exists, then copy that directory to the temp data_bags. If it doesn't exist, then throw an error (or whatever happens now if there is no data_bags directory).

If the user doesn't have an environment_data_bags directory, then just do what is done now (copying the data_bags directory).

What do you think?

Sorry - just went ahead and did it - Pull Request #33