guests/debian: Move NFS into same file
This commit is contained in:
parent
0af02fc78c
commit
9134172ce6
|
@ -1,10 +1,11 @@
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module GuestDebian
|
module GuestDebian
|
||||||
module Cap
|
module Cap
|
||||||
class NFSClient
|
class NFS
|
||||||
def self.nfs_client_install(machine)
|
def self.nfs_client_install(machine)
|
||||||
comm = machine.communicate
|
comm = machine.communicate
|
||||||
comm.sudo <<-EOH.gsub(/^ {12}/, '')
|
comm.sudo <<-EOH.gsub(/^ {12}/, '')
|
||||||
|
set -e
|
||||||
apt-get -yqq update
|
apt-get -yqq update
|
||||||
apt-get -yqq install nfs-common portmap
|
apt-get -yqq install nfs-common portmap
|
||||||
EOH
|
EOH
|
|
@ -22,8 +22,8 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
guest_capability(:debian, :nfs_client_install) do
|
guest_capability(:debian, :nfs_client_install) do
|
||||||
require_relative "cap/nfs_client"
|
require_relative "cap/nfs"
|
||||||
Cap::NFSClient
|
Cap::NFS
|
||||||
end
|
end
|
||||||
|
|
||||||
guest_capability(:debian, :rsync_install) do
|
guest_capability(:debian, :rsync_install) do
|
||||||
|
|
Loading…
Reference in New Issue