2014-03-06 08:18:29 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestSmartos
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "SmartOS guest."
|
|
|
|
description "SmartOS guest support."
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
config(:smartos) do
|
|
|
|
require_relative "config"
|
2014-03-06 08:18:29 +00:00
|
|
|
Config
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest(:smartos) do
|
|
|
|
require_relative "guest"
|
2014-03-06 08:18:29 +00:00
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:smartos, :change_host_name) do
|
2014-03-06 08:18:29 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:smartos, :configure_networks) do
|
2014-03-06 08:18:29 +00:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:smartos, :halt) do
|
2014-03-06 08:18:29 +00:00
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
|
|
|
|
2017-05-24 17:29:46 +00:00
|
|
|
guest_capability(:smartos, :insert_public_key) do
|
|
|
|
require_relative "cap/insert_public_key"
|
|
|
|
Cap::InsertPublicKey
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:smartos, :mount_nfs_folder) do
|
2014-03-06 08:18:29 +00:00
|
|
|
require_relative "cap/mount_nfs"
|
|
|
|
Cap::MountNFS
|
|
|
|
end
|
|
|
|
|
2017-05-24 17:29:46 +00:00
|
|
|
guest_capability(:smartos, :remove_public_key) do
|
|
|
|
require_relative "cap/remove_public_key"
|
|
|
|
Cap::RemovePublicKey
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:smartos, :rsync_installed) do
|
2014-03-06 08:18:29 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:smartos, :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(:smartos, :rsync_post) do
|
2014-03-11 08:25:08 +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(:smartos, :rsync_pre) do
|
2014-05-07 01:40:55 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
2014-03-06 08:18:29 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2017-05-24 17:29:46 +00:00
|
|
|
|