2013-04-30 22:07:34 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
2013-05-02 02:02:00 +00:00
|
|
|
module GuestOmniOS
|
2013-04-30 22:07:34 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2013-05-02 02:02:00 +00:00
|
|
|
name "OmniOS guest."
|
|
|
|
description "OmniOS guest support."
|
2013-04-30 22:07:34 +00:00
|
|
|
|
2013-05-02 02:02:00 +00:00
|
|
|
guest("omnios", "solaris") do
|
2013-04-30 22:07:34 +00:00
|
|
|
require File.expand_path("../guest", __FILE__)
|
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2013-05-02 02:02:00 +00:00
|
|
|
guest_capability("omnios", "change_host_name") do
|
2013-04-30 22:07:34 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
2014-03-20 21:00:34 +00:00
|
|
|
|
|
|
|
guest_capability("omnios", "mount_nfs_folder") do
|
|
|
|
require_relative "cap/mount_nfs_folder"
|
|
|
|
Cap::MountNFSFolder
|
|
|
|
end
|
2013-04-30 22:07:34 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|