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)¶返回一个在master所有目录的列表。
salt.fileserver.roots.
envs
()¶Return the file server environments
salt.fileserver.roots.
file_hash
(load, fnd)¶返回一个文件hash,hash类型在master配置文件中设置。
salt.fileserver.roots.
file_list
(load)¶在指定环境中返回文件服务器的所有文件列表
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', **kwargs)¶在相对路径中搜索环境
salt.fileserver.roots.
serve_file
(load, fnd)¶从一个基于接收到的文件中返回数据块
salt.fileserver.roots.
symlink_list
(load)¶Return a dict of all symlinks based on a given path on the Master
salt.fileserver.roots.
update
()¶当我们要求更新(正则区间)允许获取缓存