Sha256: ccf2fdad1785a235856b62ad2baf81e1168fec49252099fcc097aaba53bbe345

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

Vagrant.configure(2) do |config|

    config.ssh.insert_key = 'true'

    # Test a forward slave mount:
    #   mounting /etc/ from the vagrant host into the guest
    config.vm.synced_folder "/etc/", "/tmp/forward_slave_mount_etc/", type: "sshfs"

    # Test a forward mount to a location that is a symbolic link
    # https://github.com/dustymabe/vagrant-sshfs/issues/44
    config.vm.synced_folder "/etc/", "/sbin/forward_slave_mount_sym_link_test/", type: "sshfs"

    # Test a forward normal mount:
    #     mounting a folder from a 3rd party host into guest
    config.vm.synced_folder "/etc/", "/tmp/forward_normal_mount_etc/", type: "sshfs",
        ssh_host: ENV['THIRD_PARTY_HOST'],
        ssh_username: ENV['THIRD_PARTY_HOST_USER'],
        ssh_password: ENV['THIRD_PARTY_HOST_PASS']

    # Test a reverse mount:
    # mounting /etc/ from vagrant guest into vagrant host
    config.vm.synced_folder "/tmp/reverse_mount_etc/", "/etc", type: "sshfs", reverse: true

    host = 'vagrant-sshfs-tests'
    box  = 'fedora/25-cloud-base'

    config.vm.define host do | tmp |
        tmp.vm.hostname = host
        tmp.vm.box = box
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-sshfs-1.3.1 test/misc/Vagrantfile