Allow to populate the domain setting of dnsmasq

As shown in documentation: this is optional, but if it is set, it
does the following things.
1) Allows DHCP hosts to have fully qualified domain names, as long
    as the domain part matches this setting.
2) Sets the "domain" DHCP option thereby potentially setting the
   domain of all systems configured by DHCP
3) Provides the domain part for "expand-hosts"

Under certain cases, have FQDN in servers is a need.

Change-Id: Id8a109984c13e95841d9e0f283d55261d083542c
This commit is contained in:
Yolanda Robla 2016-01-12 10:13:21 +01:00
parent 7ff69efafa
commit 2d713268a3
3 changed files with 20 additions and 0 deletions

View File

@ -143,6 +143,9 @@ enable_cors_credential_support: Boolean value, default false. This variable
noauth mode, this realistically should not
be modified.
domain: String value, default to false. If set, domain setting is configured
in dnsmasq.
### Hardware Inspection Support
Bifrost also supports the installation of ironic-inspector in standalone

View File

@ -142,6 +142,9 @@ dhcp-hostsfile=/etc/dnsmasq.d/bifrost.dhcp-hosts.d
# domain of all systems configured by DHCP
# 3) Provides the domain part for "expand-hosts"
#domain=thekelleys.org.uk
{% if domain is defined %}
domain={{ domain }}
{% endif %}
# Set a different domain for a particular subnet
#domain=wireless.thekelleys.org.uk,192.168.2.0/24

View File

@ -0,0 +1,14 @@
---
features:
- Allow to populate the domain setting of
dnsmasq. As shown in documentation: this is optional,
but if it is set, it does the following things.
1) Allows DHCP hosts to have fully qualified domain
names, as long as the domain part matches this setting.
2) Sets the "domain" DHCP option thereby potentially
setting the domain of all systems configured by DHCP.
3) Provides the domain part for "expand-hosts"
other:
- The role will accept the ``domain`` setting. If that's
present, it will be populated to equivalent domain
setting in dnsmasq.conf