add default hostname option
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2021-11-14 20:31:34 +01:00
parent 5fd202ae8e
commit e2a4b6df99

View File

@ -147,6 +147,7 @@ host {{ host.hostname }}-hw{{ loop.index }} {
{% if not host.options is defined or (host.options and not 'host-name' in host.options) %} {% if not host.options is defined or (host.options and not 'host-name' in host.options) %}
option host-name "{{ host.hostname }}"; option host-name "{{ host.hostname }}";
{% endif %} {% endif %}
ddns-hostname "{{ host.hostname }}";
{% if host.address is defined and host.address %} {% if host.address is defined and host.address %}
fixed-address {{ host.address }}; fixed-address {{ host.address }};
{% endif %} {% endif %}
@ -160,6 +161,10 @@ host {{ host.hostname }} {
{% if host.ethernet is defined and host.ethernet %} {% if host.ethernet is defined and host.ethernet %}
hardware ethernet {{ host.ethernet }}; hardware ethernet {{ host.ethernet }};
{% endif %} {% endif %}
{% if not host.options is defined or (host.options and not 'host-name' in host.options) %}
option host-name "{{ host.hostname }}";
{% endif %}
ddns-hostname "{{ host.hostname }}";
{% if host.address is defined and host.address %} {% if host.address is defined and host.address %}
{% if dhcpd_ipversion is defined and dhcpd_ipversion == '6' %} {% if dhcpd_ipversion is defined and dhcpd_ipversion == '6' %}
fixed-address6 {{ host.address }}; fixed-address6 {{ host.address }};