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

vagrant: Upgrade Fedora 35 vagrantfile to Fedora 40 #3663

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 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
26 changes: 0 additions & 26 deletions ansible/vagrant/Vagrantfile.Fedora35

This file was deleted.

36 changes: 36 additions & 0 deletions ansible/vagrant/Vagrantfile.Fedora40
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

$script = <<SCRIPT

# Install python2, make it the default python
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment seems incorrect?

sudo dnf -y install python3.8
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.8 /usr/bin/python3

sudo dnf -y install python3-libselinux

# Put the host machine's IP into the authorised_keys file on the VM
if [ -r /vagrant/id_rsa.pub ]; then
mkdir -p $HOME/.ssh && cat /vagrant/id_rsa.pub >> $HOME/.ssh/authorized_keys
fi
SCRIPT

# 2 = version of configuration file for Vagrant 1.1+ leading up to 2.0.x
Vagrant.configure("2") do |config|

config.vm.define :adoptopenjdkF40 do |adoptopenjdkF40|
adoptopenjdkF40.vm.box = "bento/fedora-40"
adoptopenjdkF40.vm.box_version = "202404.23.0"
adoptopenjdkF40.vm.synced_folder ".", "/vagrant"
adoptopenjdkF40.vm.hostname = "adoptopenjdkF40"
adoptopenjdkF40.vm.network :private_network, type: "dhcp"
adoptopenjdkF40.vm.provision "shell", inline: $script, privileged: false
adoptopenjdkF40.vm.boot_timeout = 900
end
config.vm.provider "virtualbox" do |v|
v.gui = false
v.memory = 2560
v.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
end
end