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

Enterprise Linux 7 Dynamic network cards fix (ref #4171) #4195

Closed
Closed
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions plugins/guests/enterprise7/guest.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module VagrantPlugins
module GuestEnterpriseLinux7

class Guest < Vagrant.plugin('2', :guest)
def detect?(machine)
machine.communicate.test('grep "\(CentOS\|Red Hat Enterprise\) Linux release 7" /etc/redhat-release')
end
end

end
end
22 changes: 22 additions & 0 deletions plugins/guests/enterprise7/plugin.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'vagrant'

module VagrantPlugins
module GuestEnterpriseLinux7

class Plugin < Vagrant.plugin("2")
name "Enterprise Linux 7 Guest"
description "Enterprise Linux 7 guest support."

guest("el7", "redhat") do
require File.expand_path("../guest", __FILE__)
Guest
end

guest_capability("el7","configure_networks") do
require File.expand_path("../../fedora/cap/configure_networks", __FILE__)
::VagrantPlugins::GuestFedora::Cap::ConfigureNetworks
end

end
end
end