<div dir="ltr">Norman,<div><br></div><div>Did you consider using some sort of configuration management or dynamic templating tool (such as consul-template) to change configuration directives on the fly depending on the role (primary/secondary) of the particular DHCP server?</div><div><br></div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 7, 2017 at 7:53 AM, Norman Elton <span dir="ltr"><<a href="mailto:normelton@gmail.com" target="_blank">normelton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bob,<br>
<br>
Sorry, I'm actually .gitignoring the symlink already. I was hoping to<br>
figure out a way to avoid needing the symlink to begin with. It's not<br>
a huge deal, just a little kludgey. My fear is that someone restoring<br>
the server after some sort of catastrophe might not be checking my<br>
readme file, and struggling to get the server back online.<br>
<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888"><br>
Norman<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Aug 7, 2017 at 9:36 AM, Bob Harold <<a href="mailto:rharolde@umich.edu">rharolde@umich.edu</a>> wrote:<br>
><br>
> On Mon, Aug 7, 2017 at 8:34 AM, Norman Elton <<a href="mailto:normelton@gmail.com">normelton@gmail.com</a>> wrote:<br>
>><br>
>> We keep our DHCP configuration in a git repository. In the case of<br>
>> failover pairs, they share a repository. This works great, since the<br>
>> vast majority of the configuration is identical.<br>
>><br>
>> Of course, the failover configuration is different between the two<br>
>> servers. To solve this, my dhcpd.conf file does an include on<br>
>> "dhcp-failover.conf", which doesn't actually exist in the repository.<br>
>> Instead, it's a symlink to either "dhcp-failover-01.conf" or<br>
>> "dhcp-failover-02.conf". This works, but I have to manually create the<br>
>> symlink when we check out the repository.<br>
>><br>
>> Not the end of the world, but it would be much smoother to say:<br>
>><br>
>> include "dhcp-failover-${HOSTNAME}"<br>
>><br>
>> So that the dhcpd.conf file automatically points to the correct<br>
>> failover config file.<br>
>><br>
>> Is there any way to include a variable in an included path name? Or<br>
>> conditionally include a file?<br>
>><br>
>> Thanks!<br>
>><br>
>> Norman Elton<br>
><br>
><br>
> git has a ".gitignore" file where you can list files and directories to be<br>
> ignored.  Try listing the symlink file in .gitignore.<br>
><br>
> Otherwise, I would just put the symlink somewhere outside the directories<br>
> controlled by git.<br>
><br>
> --<br>
> Bob Harold<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br>
______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br></div>