SmartOS should be OmniOS
This commit is contained in:
parent
3052fd350f
commit
4d26f01b7b
|
@ -9,7 +9,7 @@ FEATURES:
|
|||
|
||||
IMPROVEMENTS:
|
||||
|
||||
- Setting hostnames works properly on SmartOS. [GH-1672]
|
||||
- Setting hostnames works properly on OmniOS. [GH-1672]
|
||||
- Better VBoxManage error detection on Windows systems. This avoids
|
||||
some major issues where Vagrant would sometimes "lose" your VM. [GH-1669]
|
||||
- Better detection of missing VirtualBox kernel drivers on Linux
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module VagrantPlugins
|
||||
module GuestSmartOS
|
||||
module GuestOmniOS
|
||||
module Cap
|
||||
class ChangeHostName
|
||||
def self.change_host_name(machine, name)
|
|
@ -1,10 +1,10 @@
|
|||
require "vagrant"
|
||||
|
||||
module VagrantPlugins
|
||||
module GuestSmartOS
|
||||
module GuestOmniOS
|
||||
class Guest < Vagrant.plugin("2", :guest)
|
||||
def detect?(machine)
|
||||
machine.communicate.test("cat /etc/release | grep -i SmartOS")
|
||||
machine.communicate.test("cat /etc/release | grep -i OmniOS")
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,17 +1,17 @@
|
|||
require "vagrant"
|
||||
|
||||
module VagrantPlugins
|
||||
module GuestSmartOS
|
||||
module GuestOmniOS
|
||||
class Plugin < Vagrant.plugin("2")
|
||||
name "SmartOS guest."
|
||||
description "SmartOS guest support."
|
||||
name "OmniOS guest."
|
||||
description "OmniOS guest support."
|
||||
|
||||
guest("smartos", "solaris") do
|
||||
guest("omnios", "solaris") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("smartos", "change_host_name") do
|
||||
guest_capability("omnios", "change_host_name") do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
Loading…
Reference in New Issue