Moved to using supervisod as a process control system.
I have a LONG and repeating ENVIRONMENT configuration in my supervisord.conf setting a lot of environment variables for a lot of processes. I need to define it one place and reuse it, to keep the configuration DRY and maintainable. is that possible with supervisor and how?
EDIT: Example of a non dry configuration
[program:node-app1] command=node /home/ubuntu/server/node-app1/app.js directory=/home/ubuntu/server/node-app1 autostart=true autorestart=true stderr_logfile=/home/ubuntu/supervisor/node_app1/err.log stdout_logfile=/home/ubuntu/supervisor/node_app1/out.log user=ubuntu priority=998 startretries=20 ENVIRONMENT=BROKER_URL="amqp://user:password@path.to.rabbit:5672", NODE_ENV=envName, MONGO_URL="mongodb://path.to.mongo:27017", BASE_PUBLIC_API="http:path.to.api", REDIS_URL="redis://path.to.redis:6379", BACKEND_URL="https://path.to.backend", CHARTS_URL="https://path.to.charts" [program:node-app2] command=node /home/ubuntu/server/node-app2/app.js directory=/home/ubuntu/server/node-app2 autostart=true autorestart=true stderr_logfile=/home/ubuntu/supervisor/node_app2/err.log stdout_logfile=/home/ubuntu/supervisor/node_app2/out.log user=ubuntu priority=20 startretries=20 ENVIRONMENT=BROKER_URL="amqp://user:password@path.to.rabbit:5672", NODE_ENV=envName, MONGO_URL="mongodb://path.to.mongo:27017", BASE_PUBLIC_API="http:path.to.api", REDIS_URL="redis://path.to.redis:6379", BACKEND_URL="https://path.to.backend", CHARTS_URL="https://path.to.charts"
What could be shared: ENVIRONMENT
, base directory for logs (only the end would change for each app), common variables like startsecs. etc