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
(cherry picked from commit 56d69ce9e8
)
This commit is contained in:
parent
b0a0a7ce82
commit
555906e91d
@ -52,6 +52,6 @@ update-locale LANG={{ locale }}
|
|||||||
# Set the IP of the lxcbr0 interface as the DNS server
|
# Set the IP of the lxcbr0 interface as the DNS server
|
||||||
mkdir -p /etc/systemd/resolved.conf.d
|
mkdir -p /etc/systemd/resolved.conf.d
|
||||||
echo "[Resolve]" > /etc/systemd/resolved.conf.d/openstack-ansible.conf
|
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
|
systemctl enable systemd-networkd
|
||||||
{{ lxc_cache_prep_post_commands }}
|
{{ lxc_cache_prep_post_commands }}
|
||||||
|
Loading…
Reference in New Issue
Block a user