salt.fileserver.roots

The default file server backend

This fileserver backend serves files from the Master's local filesystem. If fileserver_backend is not defined in the Master config file, then this backend is enabled by default. If it is defined then roots must be in the fileserver_backend list to enable this backend.

fileserver_backend:
  - roots

Fileserver environments are defined using the file_roots configuration option.

salt.fileserver.roots.dir_list(load)

Return a list of all directories on the master

salt.fileserver.roots.envs()

Return the file server environments

salt.fileserver.roots.file_hash(load, fnd)

Return a file hash, the hash type is set in the master config file

salt.fileserver.roots.file_list(load)

Return a list of all files on the file server in a specified environment

salt.fileserver.roots.file_list_emptydirs(load)

Return a list of all empty directories on the master

salt.fileserver.roots.find_file(path, saltenv='base', env=None, **kwargs)

Search the environment for the relative path

salt.fileserver.roots.serve_file(load, fnd)

Return a chunk from a file based on the data received

Return a dict of all symlinks based on a given path on the Master

salt.fileserver.roots.update()

When we are asked to update (regular interval) lets reap the cache