2014-01-14 06:25:35 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestNetBSD
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "NetBSD guest"
|
|
|
|
description "NetBSD guest support."
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest(:netbsd) do
|
|
|
|
require_relative "guest"
|
2014-01-14 06:25:35 +00:00
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :change_host_name) do
|
2014-01-14 06:25:35 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :configure_networks) do
|
2014-01-14 06:25:35 +00:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :halt) do
|
2014-01-14 06:25:35 +00:00
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :insert_public_key) do
|
2014-02-04 04:09:29 +00:00
|
|
|
require_relative "cap/insert_public_key"
|
|
|
|
Cap::InsertPublicKey
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :mount_nfs_folder) do
|
2014-01-14 06:25:35 +00:00
|
|
|
require_relative "cap/mount_nfs_folder"
|
|
|
|
Cap::MountNFSFolder
|
|
|
|
end
|
2014-02-02 20:38:24 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :remove_public_key) do
|
2014-10-24 17:05:01 +00:00
|
|
|
require_relative "cap/remove_public_key"
|
|
|
|
Cap::RemovePublicKey
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :rsync_install) 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(:netbsd, :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(:netbsd, :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(:netbsd, :rsync_post) do
|
2014-01-31 03:26:43 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
2014-02-03 11:12:49 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :rsync_pre) do
|
2014-05-07 01:40:55 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:netbsd, :shell_expand_guest_path) do
|
2014-02-02 20:38:24 +00:00
|
|
|
require_relative "cap/shell_expand_guest_path"
|
|
|
|
Cap::ShellExpandGuestPath
|
|
|
|
end
|
2014-01-14 06:25:35 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|