diff --git a/facts/Vagrantfile b/facts/Vagrantfile index e519bedd..9417bc56 100644 --- a/facts/Vagrantfile +++ b/facts/Vagrantfile @@ -165,7 +165,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| host.vm.box = 'generic/rhel8' host.vm.synced_folder '.', '/vagrant' host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile' - host.vm.provision 'shell', inline: 'sysctl -w net.ipv6.conf.all.disable_ipv6=0' host.vm.provision 'shell', path: 'get_facts.sh' host.vm.provision 'shell', inline: '/sbin/shutdown -h now' end @@ -173,7 +172,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| host.vm.box = 'generic/rhel9' host.vm.synced_folder '.', '/vagrant' host.vm.provision 'file', source: 'Gemfile', destination: 'Gemfile' - host.vm.provision 'shell', inline: 'sysctl -w net.ipv6.conf.all.disable_ipv6=0' host.vm.provision 'shell', path: 'get_facts.sh' host.vm.provision 'shell', inline: '/sbin/shutdown -h now' end diff --git a/facts/get_facts.sh b/facts/get_facts.sh index 5d15dbf4..690ad548 100755 --- a/facts/get_facts.sh +++ b/facts/get_facts.sh @@ -2,6 +2,9 @@ export PATH=/opt/puppetlabs/bin:$PATH +# ensure IPv6 is always enabled, some boxes disable it by default, e.g. Fedora and RedHat +sysctl -w net.ipv6.conf.all.disable_ipv6=0 + puppetAgentVersionList='/vagrant/versions.txt' if test ! -f $puppetAgentVersionList; then echo 'Missing version list' >&2