From 1302cd88259ea243532608a25e87b05b59337527 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 23 Jul 2018 17:12:33 -0500 Subject: [PATCH] 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. --- roles/dhcpcd/templates/dhcpcd.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/dhcpcd/templates/dhcpcd.conf.j2 b/roles/dhcpcd/templates/dhcpcd.conf.j2 index c31497b..d3e2ec3 100644 --- a/roles/dhcpcd/templates/dhcpcd.conf.j2 +++ b/roles/dhcpcd/templates/dhcpcd.conf.j2 @@ -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.