The backend for serving files pushed to master by cp.push (file_recv).
file_recv needs to be enabled in the master config file.
salt.fileserver.minionfs.dir_list(load)¶Return a list of all directories on the master
CLI Example:
$ salt 'source-minion' cp.push /absolute/path/file # Push the file to the master
$ salt 'destination-minion' cp.list_master_dirs
destination-minion:
- .
- source-minion/absolute
- source-minion/absolute/path
salt.fileserver.minionfs.envs()¶Return "base" as the file server environment, because there is only one set of minions.
salt.fileserver.minionfs.file_hash(load, fnd)¶Return a file hash, the hash type is set in the master config file
salt.fileserver.minionfs.file_list(load)¶Return a list of all files on the file server in a specified environment
salt.fileserver.minionfs.find_file(path, env='base', **kwargs)¶Search the environment for the relative path
salt.fileserver.minionfs.serve_file(load, fnd)¶Return a chunk from a file based on the data received
CLI Example:
$ salt 'source-minion' cp.push /path/to/the/file # Push the file to the master
$ salt 'destination-minion' cp.get_file salt://source-minion/path/to/the/file /destination/file
salt.fileserver.minionfs.update()¶When we are asked to update (regular interval) lets reap the cache
Current Salt release: 2014.1.7
Docs for previous releases on salt.rtfd.org.