The backend for serving files from the Azure blob storage service.
To enable, add azurefs
to the fileserver_backend
option in
the Master config file.
fileserver_backend:
- azurefs
Each environment is configured as a storage container. The name of the container
must match the name of the environment. The storage_account
is the name of
the storage account inside Azure where the container lives, and the
storage_key
is the access key used for that storage account:
azurefs_envs:
base:
storage_account: my_storage
storage_key: frehgfw34fWGegG07fwsfw343tGFDSDGDFGD==
With this configuration, multiple storage accounts can be used with a single salt instrastructure.
salt.fileserver.azurefs.
dir_list
(load)¶Return a list of all directories on the master
salt.fileserver.azurefs.
envs
()¶Treat each container as an environment
salt.fileserver.azurefs.
file_hash
(load, fnd)¶Return a file hash, the hash type is set in the master config file
salt.fileserver.azurefs.
file_list
(load)¶Return a list of all files on the file server in a specified environment
salt.fileserver.azurefs.
find_file
(path, saltenv='base', env=None, **kwargs)¶Search the environment for the relative path
salt.fileserver.azurefs.
serve_file
(load, fnd)¶Return a chunk from a file based on the data received
salt.fileserver.azurefs.
update
()¶When we are asked to update (regular interval) lets reap the cache