"frontend/src/git@git.gitsec.cn:loongten/metersphere.git" did not exist on "2f997222389dae49ea42af4c9253c91d659e4141"
Commit f4ee4764 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto
Browse files

guests/redhat: configure networks properly on EL7 [GH-4195]

parent ee70bdd0
Showing with 18 additions and 0 deletions
+18 -0
......@@ -70,6 +70,7 @@ BUG FIXES:
[GH-4403]
- guests/redhat: NFS setup should use systemd for RH7+ [GH-4228]
- guests/redhat: Detect RHEL 7 (and CentOS) and install Docker properly. [GH-4402]
- guests/redhat: Configuring networks on EL7 works. [GH-4195]
- guests/smartos: Use `pfexec` for rsync. [GH-4274]
- guests/windows: Reboot after hostname change. [GH-3987]
- hosts/arch: NFS works with latest versions. [GH-4224]
......
......@@ -12,6 +12,23 @@ module VagrantPlugins
include Vagrant::Util
def self.configure_networks(machine, networks)
case machine.guest.capability("flavor")
when :rhel_7
configure_networks_rhel7(machine)
else
configure_networks_default(machine)
end
end
def self.configure_networks_rhel7(machine, networks)
# This is kind of jank but the configure networks is the same
# as Fedora at this point.
require File.expand_path("../../fedora/cap/configure_networks", __FILE__)
::VagrantPlugins::GuestFedora::Cap::ConfigureNetworks.
configure_networks(machine, networks)
end
def self.configure_networks_default(machine, networks)
network_scripts_dir = machine.guest.capability("network_scripts_dir")
# Accumulate the configurations to add to the interfaces file as
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment