-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
+53
−34
Closed
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f0f688e
vagrant: Upgrade Fedora 35 vagrantfile to Fedora 40
Haroon-Khel 76cc2eb
Add timeout option
Haroon-Khel f5e7b91
Make python2 the default python
Haroon-Khel d2dce4b
install python3-libselinux
Haroon-Khel 182011f
Try with python3.8
Haroon-Khel e716ed2
Make python3.8 the default
Haroon-Khel c470dca
Make python3.8 the default
Haroon-Khel dfd03c1
install python3-libselinux
Haroon-Khel abd81ba
install libselinux-devel
Haroon-Khel eefa09a
Add fedora40 to destroy vm script
Haroon-Khel 562da92
Try with local ansible setup
Haroon-Khel cca59ae
install python2 after ansible
Haroon-Khel 5da2c03
Add condition in vpc script to set python version
Haroon-Khel f2fd108
Remove brackets
Haroon-Khel d131617
Missing semicolons in vmDestroy script
Haroon-Khel a5eaf4d
install selinux with pip (and install pip)
Haroon-Khel ec2f114
forgot to install selinux
Haroon-Khel 90249ab
remove link to python 3.12
Haroon-Khel 73652bc
forgot to add sudos
Haroon-Khel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment seems incorrect?