roles/dhcpcd: Use a list for allow/deny interfaces
Using a list to specify the values for the `allowinterfaces` and `denyinterfaces` parameters in `dhcpcd.conf` makes the configuration policy cleaner and more type-safe.jenkins-master
parent
620fcc79b8
commit
1302cd8825
|
@ -14,11 +14,11 @@ controlgroup {{ dhcpcd_controlgroup }}
|
|||
{% endif %}
|
||||
{% if dhcpcd_allow_interfaces is defined %}
|
||||
|
||||
allowinterfaces {{ dhcpcd_allow_interfaces }}
|
||||
allowinterfaces {{ dhcpcd_allow_interfaces|join(' ')}}
|
||||
{% endif %}
|
||||
{% if dhcpcd_deny_interfaces is defined %}
|
||||
|
||||
denyinterfaces {{ dhcpcd_deny_interfaces }}
|
||||
denyinterfaces {{ dhcpcd_deny_interfaces|join(' ') }}
|
||||
{% endif %}
|
||||
|
||||
# Inform the DHCP server of our hostname for DDNS.
|
||||
|
|
Loading…
Reference in New Issue