2012-04-19 00:38:20 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestSolaris
|
2012-11-07 05:14:45 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2012-04-19 00:38:20 +00:00
|
|
|
name "Solaris guest."
|
|
|
|
description "Solaris guest support."
|
2012-04-19 04:03:03 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
config(:solaris) do
|
|
|
|
require_relative "config"
|
2012-05-23 22:57:43 +00:00
|
|
|
Config
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest(:solaris) do
|
|
|
|
require_relative "guest"
|
2012-05-23 22:57:43 +00:00
|
|
|
Guest
|
|
|
|
end
|
2013-04-04 19:25:10 +00:00
|
|
|
|
2018-10-04 20:13:27 +00:00
|
|
|
guest_capability(:solaris, :create_tmp_path) do
|
|
|
|
require_relative "cap/file_system"
|
|
|
|
Cap::FileSystem
|
|
|
|
end
|
|
|
|
|
|
|
|
guest_capability(:solaris, :decompress_tgz) do
|
|
|
|
require_relative "cap/file_system"
|
|
|
|
Cap::FileSystem
|
|
|
|
end
|
|
|
|
|
|
|
|
guest_capability(:solaris, :decompress_zip) do
|
|
|
|
require_relative "cap/file_system"
|
|
|
|
Cap::FileSystem
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :change_host_name) do
|
2013-04-04 19:25:10 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :configure_networks) do
|
2013-04-04 19:25:10 +00:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :insert_public_key) do
|
2015-01-14 02:45:06 +00:00
|
|
|
require_relative "cap/insert_public_key"
|
|
|
|
Cap::InsertPublicKey
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :halt) do
|
2013-04-04 19:25:10 +00:00
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :mount_virtualbox_shared_folder) do
|
2013-04-04 19:25:10 +00:00
|
|
|
require_relative "cap/mount_virtualbox_shared_folder"
|
|
|
|
Cap::MountVirtualBoxSharedFolder
|
|
|
|
end
|
2014-01-31 03:26:43 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :remove_public_key) do
|
2015-01-14 02:45:06 +00:00
|
|
|
require_relative "cap/remove_public_key"
|
|
|
|
Cap::RemovePublicKey
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :rsync_installed) do
|
2014-01-31 03:26:43 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :rsync_command) do
|
2014-04-25 19:00:12 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :rsync_post) do
|
2014-01-31 03:26:43 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
2014-05-07 01:40:55 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:solaris, :rsync_pre) do
|
2014-05-07 01:40:55 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
2012-04-19 00:38:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|