Merge "Allow resolv.conf configuration to be prevented"
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# DNS.
|
# DNS.
|
||||||
|
|
||||||
|
# Whether kayobe should configure resolv.conf.
|
||||||
|
resolv_is_managed: true
|
||||||
|
|
||||||
# List of DNS nameservers.
|
# List of DNS nameservers.
|
||||||
resolv_nameservers:
|
resolv_nameservers:
|
||||||
- 8.8.8.8
|
- 8.8.8.8
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: ahuffman.resolv
|
- role: ahuffman.resolv
|
||||||
|
when: resolv_is_managed | bool
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
- role: MichaelRigart.interfaces
|
- role: MichaelRigart.interfaces
|
||||||
|
|||||||
@@ -368,6 +368,25 @@ VLAN to be forwarded by the bridge, whereas adding a VLAN interface to an
|
|||||||
Ethernet or bond interface that is a bridge member port will prevent tagged
|
Ethernet or bond interface that is a bridge member port will prevent tagged
|
||||||
traffic for that VLAN being forwarded by the bridge.
|
traffic for that VLAN being forwarded by the bridge.
|
||||||
|
|
||||||
|
Domain Name Service (DNS) Resolver Configuration
|
||||||
|
================================================
|
||||||
|
|
||||||
|
Kayobe supports configuration of hosts' DNS resolver via ``resolv.conf``. DNS
|
||||||
|
configuration should be added to ``dns.yml``. For example:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
:caption: ``dns.yml``
|
||||||
|
|
||||||
|
resolv_nameservers:
|
||||||
|
- 8.8.8.8
|
||||||
|
- 8.8.4.4
|
||||||
|
resolv_domain: example.com
|
||||||
|
resolv_search:
|
||||||
|
- kayobe.example.com
|
||||||
|
|
||||||
|
It is also possible to prevent kayobe from modifying ``resolv.conf`` by setting
|
||||||
|
``resolv_is_managed`` to ``false``.
|
||||||
|
|
||||||
Network Role Configuration
|
Network Role Configuration
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# DNS.
|
# DNS.
|
||||||
|
|
||||||
|
# Whether kayobe should configure resolv.conf.
|
||||||
|
#resolv_is_managed:
|
||||||
|
|
||||||
# List of DNS nameservers.
|
# List of DNS nameservers.
|
||||||
#resolv_nameservers:
|
#resolv_nameservers:
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Adds the ability to prevent configuration of the DNS resolver. This can be
|
||||||
|
done by setting ``resolv_is_managed`` to ``false``.
|
||||||
Reference in New Issue
Block a user