<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Using OS env variables would definitely speed up the process. I could have a “master” config file that is exported to the ENV and then each node would get all of the important info. Really, the changing information that just got annoying was entering the node name and IP address for the local network and the public IP addresses to listen on for certain information. This could certainly hold us over until we move into containerized systems.
<div><br /></div>
<div>Thanks!</div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On May 7, 2018, 10:51 AM -0400, Stefan Hellkvist <hellkvist@gmail.com>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div></div>
<div><br /></div>
<div><br />
7 maj 2018 kl. 16:44 skrev Guilherme Andrade <<a href="mailto:g@gandrade.net">g@gandrade.net</a>>:<br />
<br /></div>
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">
<div>
<div dir="ltr"><br />
<div class="gmail_extra"><br />
<div class="gmail_quote">On 7 May 2018 at 15:03, Stefan Hellkvist <span dir="ltr"><<a href="mailto:hellkvist@gmail.com" target="_blank">hellkvist@gmail.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #3498db;">
<div dir="ltr">What's "best" is very much depending on who you ask, but, for starters you may consider wrapping your configuration with something that allows you to override config variables with environment variables (see example below).<br clear="all" /></div>
</blockquote>
<div><br /></div>
<div>rebar3 releases provide this out of the box:<br />
<br />
<a href="https://www.rebar3.org/docs/releases#dynamic-configuration">https://www.rebar3.org/docs/releases#dynamic-configuration</a><br /></div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br /></div>
<div>It is a relx feature, yes, which works fine also in erlang.mk, but I find it sometimes inconvenient that you then HAVE to set the environment variable every time. But, agreed, it is also a good option if you start your release with a script.</div>
<div><br /></div>
<div>Stefan</div>
<div><br /></div>
</blockquote>
<div></div>
</div>
</body>
</html>