Skip to content

Commit

Permalink
Ensure every instance is started with IPv6 enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed May 16, 2024
1 parent 9d2e5ef commit 6861010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions facts/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,13 @@ 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
config.vm.define 'redhat-9-x86_64', autostart: false do |host|
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
Expand Down
3 changes: 3 additions & 0 deletions facts/get_facts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6861010

Please sign in to comment.