SUSE: Use the lxcbr0 IP as the initial DNS resolver

The role prepares and runs a dnsmasq server on the lxcbr0 interface so
we should be able to use that as the default DNS server for the
containers.

Change-Id: Ic8342a53d6f0f54e3dadcd2a7075af0ac32336be
This commit is contained in:
Markos Chandras 2018-03-06 15:30:00 +00:00
parent 3f184d574c
commit fb73d9f1ca

View File

@ -70,6 +70,8 @@ lxc_cache_map:
zypper --gpg-auto-import-keys -n in --force-resolution -l {{ lxc_cache_distro_packages | join(' ') }}
mkdir -p /var/backup
chage -I -1 -d -1 -m 0 -M 99999 -E -1 root
# Set the IP of the lxcbr0 interface as the DNS server
echo "nameserver {{ lxc_net_address }}" > /etc/resolv.conf
# NOTE(hwoarang): Enable sshd which has been explicitely disabled in
# https://github.com/lxc/lxc-ci/commit/8dc7105399350a59698538a12b6d5a1a880ef2ba
systemctl -q unmask sshd