Add CloudLinux 7 to RHEL 7 flavors.

This commit is contained in:
Eugene Zamriy 2016-06-12 16:51:55 +03:00
parent cb1749b375
commit eaa4e11c62
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module VagrantPlugins
end
# Detect various flavors we care about
if output =~ /(CentOS|Red Hat Enterprise|Scientific) Linux( .+)? release 7/i
if output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud)\s*Linux( .+)? release 7/i
return :rhel_7
else
return :rhel

View File

@ -25,6 +25,7 @@ describe "VagrantPlugins::GuestRedHat::Cap::Flavor" do
"CentOS Linux 2.4 release 7" => :rhel_7,
"Red Hat Enterprise Linux release 7" => :rhel_7,
"Scientific Linux release 7" => :rhel_7,
"CloudLinux release 7.2 (Valeri Kubasov)" => :rhel_7,
"CentOS" => :rhel,
"RHEL 6" => :rhel,