How to mount a directory in virtualbox with Salt-Stack?

Currently trying to provision a VirtualBox with Salt. There is a salt-state to mount directories. However, I don't know what the device should be in the state.

The state currently looks like:

directory:
  file.directory:
    - user: ...
    - ...
  mount.mounted:
    - device: <somedevicenamewhichIcantgetright>
    - fstype: auto

Whatever I try for somedevicenamewhichIcantgetright isn't found, and I've looked in the docs here but I can't find anything about this.

Does anyone know what it should look like? I've tried username@machine:/path/to/directory and file://path/to/directory (although that should be on the virtualbox itself; I was taking a shot at the pack).

Answers


Are you trying to mount a directory from the host to your vm with Virtualbox? If so, you can do that in your Vagrantfile like this:

config.vm.synced_folder "saltstack/salt/", "/srv/salt"


Need Your Help

Create a custom View by inflating a layout?

android xml view

I am trying to create a custom View that would replace a certain layout that I use at multiple places, but I am struggling to do so.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.