`uname -sr` return also 5.11 on OmniOS, SmartOS which is not the same as Oracle Solaris 11.x. SmartOS and OmniOS are inherit from Solaris and not from Solaris 11. For that reason we need a more explicit check that a solaris11 guest is a real Solaris version 11, for that reason the /etc/release file is checked.
16 lines
351 B
Ruby
16 lines
351 B
Ruby
# A general Vagrant system implementation for "solaris 11".
|
|
#
|
|
# Contributed by Jan Thomas Moldung <janth@moldung.no>
|
|
|
|
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestSolaris11
|
|
class Guest < Vagrant.plugin("2", :guest)
|
|
def detect?(machine)
|
|
machine.communicate.test("grep 'Solaris 11' /etc/release")
|
|
end
|
|
end
|
|
end
|
|
end
|