(vagrant) Permanently enable IPv6 on loopback

Required by NSD; The Ubuntu image we use comes with it disabled so we need to
enable it ourselves.
This commit is contained in:
David 2021-08-23 02:10:34 +01:00
parent d8c77527bd
commit aca49ea674
No known key found for this signature in database
GPG key ID: 913FE0F2477D7D6B

1
Vagrantfile vendored
View file

@ -47,6 +47,7 @@ Vagrant.configure("2") do |config|
m.vm.provision "shell", :inline => <<-SH m.vm.provision "shell", :inline => <<-SH
# Make sure we have IPv6 loopback (::1) # Make sure we have IPv6 loopback (::1)
sysctl -w net.ipv6.conf.lo.disable_ipv6=0 sysctl -w net.ipv6.conf.lo.disable_ipv6=0
echo -e "fs.inotify.max_user_instances=1024\nnet.ipv6.conf.lo.disable_ipv6=0" > /etc/sysctl.conf
# Set environment variables so that the setup script does # Set environment variables so that the setup script does
# not ask any questions during provisioning. We'll let the # not ask any questions during provisioning. We'll let the
# machine figure out its own public IP. # machine figure out its own public IP.