From 56d69ce9e86a3983999366a189fe97353943af3b Mon Sep 17 00:00:00 2001 From: Damian Dabrowski Date: Fri, 5 Jan 2024 12:24:51 +0100 Subject: [PATCH] Fix resolved config on Debian Currently, file /etc/systemd/resolved.conf.d/openstack-ansible.conf has incorrect format and is being ignored: ``` systemd-resolved[740]: /etc/systemd/resolved.conf.d/openstack-ansible.conf:2: Missing '=', ignoring line. ``` Change-Id: I23529b0dd032cbb6ba59acc3d3b668c06847da08 --- templates/prep-scripts/debian_prep.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/prep-scripts/debian_prep.sh.j2 b/templates/prep-scripts/debian_prep.sh.j2 index c8a52506..655d44a0 100644 --- a/templates/prep-scripts/debian_prep.sh.j2 +++ b/templates/prep-scripts/debian_prep.sh.j2 @@ -52,6 +52,6 @@ update-locale LANG={{ locale }} # Set the IP of the lxcbr0 interface as the DNS server mkdir -p /etc/systemd/resolved.conf.d echo "[Resolve]" > /etc/systemd/resolved.conf.d/openstack-ansible.conf -echo "{{ lxc_net_address }}" >> /etc/systemd/resolved.conf.d/openstack-ansible.conf +echo "DNS={{ lxc_net_address }}" >> /etc/systemd/resolved.conf.d/openstack-ansible.conf systemctl enable systemd-networkd {{ lxc_cache_prep_post_commands }}