2013-10-09 04:47:32 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestEsxi
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "ESXi guest."
|
|
|
|
description "ESXi guest support."
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest(:esxi) do
|
|
|
|
require_relative "guest"
|
2013-10-09 04:47:32 +00:00
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:esxi, :change_host_name) do
|
2013-10-09 04:47:32 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:esxi, :configure_networks) do
|
2013-10-09 04:47:32 +00:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:esxi, :mount_nfs_folder) do
|
2013-10-09 04:47:32 +00:00
|
|
|
require_relative "cap/mount_nfs_folder"
|
|
|
|
Cap::MountNFSFolder
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:esxi, :halt) do
|
2013-10-09 04:47:32 +00:00
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|