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

Vagrantfile: Added Bookworm #615

Merged
merged 1 commit into from
Apr 22, 2024
Merged
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
23 changes: 23 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,29 @@ Vagrant.configure("2") do |config|
end
end

config.vm.define "bookworm" do |bookworm|
bookworm.vm.box = "debian/bookworm64"
bookworm.ssh.insert_key = true
bookworm.vm.hostname = "bookworm"
bookworm.vm.boot_timeout = 600
bookworm.vbguest.auto_update = false
bookworm.vm.provision "shell",
# Remove EXTERNALLY-MANAGED to ignore PEP 668 implementation in Deb12
inline: "apt-get update && apt-get -y install python3-pip curl && rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED && python3 -m pip install ansible"
bookworm.vm.provision "ansible" do |a|
a.verbose = "v"
a.limit = "all"
a.playbook = "tests/test.yml"
a.extra_vars = {
"ansible_become_pass" => "vagrant",
"ansible_python_interpreter" => "/usr/bin/python3",
"sshd_admin_net" => ["0.0.0.0/0"],
"sshd_allow_groups" => ["vagrant", "sudo", "debian", "ubuntu"],
"system_upgrade" => "false",
}
end
end

config.vm.define "focal" do |focal|
focal.vm.box = "ubuntu/focal64"
focal.ssh.insert_key = true
Expand Down