2012-04-19 05:20:45 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module HostLinux
|
2012-11-07 05:20:22 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2012-04-19 05:20:45 +00:00
|
|
|
name "Linux host"
|
|
|
|
description "Linux host support."
|
|
|
|
|
2012-05-23 23:03:14 +00:00
|
|
|
host("linux") do
|
2014-01-08 04:53:39 +00:00
|
|
|
require_relative "host"
|
2012-05-23 23:03:14 +00:00
|
|
|
Host
|
|
|
|
end
|
2014-01-08 04:53:39 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-05-21 02:55:36 +00:00
|
|
|
host_capability("linux", "rdp_client") do
|
|
|
|
require_relative "cap/rdp"
|
|
|
|
Cap::RDP
|
|
|
|
end
|
|
|
|
|
2014-01-08 04:53:39 +00:00
|
|
|
# Linux-specific helpers we need to determine paths that can
|
2018-03-14 14:41:04 +00:00
|
|
|
# be overridden.
|
2014-01-08 04:53:39 +00:00
|
|
|
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
|
2018-06-12 17:49:10 +00:00
|
|
|
|
|
|
|
host_capability("linux", "set_ssh_key_permissions") do
|
|
|
|
require_relative "cap/ssh"
|
|
|
|
Cap::SSH
|
|
|
|
end
|
2012-04-19 05:20:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|