2023-08-10 16:53:25 -04:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2012-04-19 01:20:45 -04:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
|
module HostWindows
|
2012-11-07 00:20:22 -05:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2012-04-19 01:20:45 -04:00
|
|
|
name "Windows host"
|
|
|
|
|
description "Windows host support."
|
|
|
|
|
|
2012-05-23 19:03:14 -04:00
|
|
|
host("windows") do
|
2014-01-08 00:13:21 -05:00
|
|
|
require_relative "host"
|
2012-05-23 19:03:14 -04:00
|
|
|
Host
|
|
|
|
|
end
|
2014-01-08 00:13:21 -05:00
|
|
|
|
2020-07-08 12:49:11 -04:00
|
|
|
host_capability("windows", "isofs_available") do
|
|
|
|
|
require_relative "cap/fs_iso"
|
|
|
|
|
Cap::FsISO
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
host_capability("windows", "create_iso") do
|
|
|
|
|
require_relative "cap/fs_iso"
|
|
|
|
|
Cap::FsISO
|
|
|
|
|
end
|
|
|
|
|
|
2015-11-04 22:37:55 -05:00
|
|
|
host_capability("windows", "provider_install_virtualbox") do
|
|
|
|
|
require_relative "cap/provider_install_virtualbox"
|
|
|
|
|
Cap::ProviderInstallVirtualBox
|
|
|
|
|
end
|
|
|
|
|
|
2014-01-08 00:13:21 -05:00
|
|
|
host_capability("windows", "nfs_installed") do
|
|
|
|
|
require_relative "cap/nfs"
|
|
|
|
|
Cap::NFS
|
|
|
|
|
end
|
2014-04-12 18:44:39 -04:00
|
|
|
|
|
|
|
|
host_capability("windows", "rdp_client") do
|
|
|
|
|
require_relative "cap/rdp"
|
|
|
|
|
Cap::RDP
|
|
|
|
|
end
|
2014-08-27 15:17:30 -04:00
|
|
|
|
|
|
|
|
host_capability("windows", "ps_client") do
|
|
|
|
|
require_relative "cap/ps"
|
|
|
|
|
Cap::PS
|
|
|
|
|
end
|
2017-12-15 19:31:44 -05:00
|
|
|
|
|
|
|
|
host_capability("windows", "smb_installed") do
|
|
|
|
|
require_relative "cap/smb"
|
|
|
|
|
Cap::SMB
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
host_capability("windows", "smb_prepare") do
|
|
|
|
|
require_relative "cap/smb"
|
|
|
|
|
Cap::SMB
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
host_capability("windows", "smb_cleanup") do
|
|
|
|
|
require_relative "cap/smb"
|
|
|
|
|
Cap::SMB
|
|
|
|
|
end
|
|
|
|
|
|
2018-04-26 11:45:05 -04:00
|
|
|
host_capability("windows", "smb_mount_options") do
|
2018-01-12 19:43:19 -05:00
|
|
|
require_relative "cap/smb"
|
|
|
|
|
Cap::SMB
|
|
|
|
|
end
|
|
|
|
|
|
2017-12-15 19:31:44 -05:00
|
|
|
host_capability("windows", "configured_ip_addresses") do
|
|
|
|
|
require_relative "cap/configured_ip_addresses"
|
|
|
|
|
Cap::ConfiguredIPAddresses
|
|
|
|
|
end
|
2018-06-12 13:49:10 -04:00
|
|
|
|
|
|
|
|
host_capability("windows", "set_ssh_key_permissions") do
|
|
|
|
|
require_relative "cap/ssh"
|
|
|
|
|
Cap::SSH
|
|
|
|
|
end
|
2020-07-30 03:10:18 -04:00
|
|
|
|
|
|
|
|
host_capability("windows", "smb_validate_password") do
|
|
|
|
|
require_relative "cap/smb"
|
|
|
|
|
Cap::SMB
|
|
|
|
|
end
|
2012-04-19 01:20:45 -04:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|