Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure every instance is started with IPv6 enabled #340

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why we even use generic/fedoraNN instead of fedora/NN-cloud-base. AFAIK the latter doesn't disable IPv6.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that as well yesterday and I want to take a look at the official boxes later.

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