3 ms·
Here's how I have come to address this issue (fyi, I'm using django-configurations and my own starter django project configured with it + ansible roles for depl
by secstate 12y ago
Here's how I have come to address this issue (fyi, I'm using django-configurations and my own starter django project configured with it + ansible roles for deployments: http://github.com/powellc/outline http://github.com/powellc/outline ):
Your production app settings live in a separate repository that is kept much more secure than the other project files. These exist as host_vars files that you can simply drop in the host_vars directory in your ansible configuration and run the deploy script.
A sample host_vars can be included for either setting up a dev vagrant box or even your staging setup, if you don't have any really secret API keys.
That way you can move things around, spin up new boxes or what have you, simply by creating new host_vars files or moving them around.