1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
require "vagrant"
module VagrantPlugins
module HostLinux
class Plugin < Vagrant.plugin("2")
name "Linux host"
description "Linux host support."
host("linux") do
require_relative "host"
Host
end
host_capability("linux", "nfs_export") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("linux", "nfs_installed") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("linux", "nfs_prune") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("linux", "rdp_client") do
require_relative "cap/rdp"
Cap::RDP
end
# Linux-specific helpers we need to determine paths that can
# be overridden.
host_capability("linux", "nfs_apply_command") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("linux", "nfs_check_command") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("linux", "nfs_start_command") do
require_relative "cap/nfs"
Cap::NFS
end
host_capability("linux", "set_ssh_key_permissions") do
require_relative "cap/ssh"
Cap::SSH
end
end
end
end
|