Hi John! Sorry for late reply. On Mon, Jul 18, 2016 at 01:07:13PM +0200, John Giannelos wrote: > I was wondering what's your opinion on moving towards a 12factor app > config structure on debsources [1]? In many of the web projects I am > involved we've been using python-decouple [2] for that. > > The idea is that you can separate configuration from code by having a > single config module with default settings (optional) that gets > overridden by values on each different env. These values can be defined > in either a local config file (eg. settings.ini or .env file) or as > environment variables. > > If you think that's a good way forward I would be interested to work on > that. python-decouple is not yet packaged for Debian but I am also > interested to help on that too.
It looks really exciting! And honestly, perfectly answers the problem. :) I read the page you mentioned, but I'm not familiar with the tool. I suppose keeping the values in files is the way to proceed, since environment variables would have to be guessed/remembered somehow at every deploy, including the Docker one that we do every day on our dev machines. Also, keep in mind the current configuration files are read in many different places on the codebase (updater, webapp, etc), so it might incur many changes here and there. I would suggest to create an RFP or ITP bug for python-decouple. Unfortunately I doubt I'll have time to help on that front. However I will happily review any patch on debsources when we get to that. Thank you for working on this! Cheers, -- Matthieu
signature.asc
Description: PGP signature