-
-
Save drizzt/cd3aae896854eec7986c947b6d09fa25 to your computer and use it in GitHub Desktop.
Network Manager virbr0 regression
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define "f25" do |f25| | |
f25.vm.box = "fedora/25-cloud-base" | |
end | |
config.vm.define "f26" do |f26| | |
f26.vm.box = "fedora/beta-26-cloud-base" | |
# FIXME Many mirrors are outdated so force a working mirror | |
f26.vm.provider "virtualbox" do |_, override| | |
override.vm.box_url = "http://mirrors.kernel.org/fedora/releases/test/26_Beta/CloudImages/x86_64/images/Fedora-Cloud-Base-Vagrant-26_Beta-1.4.x86_64.vagrant-virtualbox.box" | |
override.vm.box_download_checksum = "a10757d3a93dd125c0655ed939907eb141c7afc4ab117286628a182767234cb5" | |
end | |
f26.vm.provider "libvirt" do |_, override| | |
override.vm.box_url = "http://mirrors.kernel.org/fedora/releases/test/26_Beta/CloudImages/x86_64/images/Fedora-Cloud-Base-Vagrant-26_Beta-1.4.x86_64.vagrant-libvirt.box" | |
override.vm.box_download_checksum = "1094bc5827117523e21dc6158b7f454f380a9ee1ac736840f4cb491b6c7663be" | |
end | |
f26.vm.box_download_checksum_type = "sha256" | |
end | |
config.vm.provision "bootstrap", type: "shell", inline: <<-SHELL | |
dnf -y install firewalld libvirt NetworkManager | |
systemctl start firewalld libvirtd NetworkManager | |
systemctl enable firewalld libvirtd NetworkManager | |
sleep 5 | |
SHELL | |
config.vm.provision "add_interface", type: "shell", inline: <<-SHELL | |
firewall-cmd --permanent --zone=trusted --add-interface=virbr0 | |
SHELL | |
config.vm.provision "show_zone", type: "shell", run: "always", inline: <<-SHELL | |
firewallctl info zone trusted | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment