salt.wheel.file_roots
Read in files from the file_root and save files to the file root
-
Return a dict of the files located with the given path and environment
salt.wheel.file_roots.find(path, saltenv='base')
-
Return all of the file paths found in an environment
salt.wheel.file_roots.list_env(saltenv='base')
-
Return all of the files names in all available environments
salt.wheel.file_roots.list_roots()
-
Read the contents of a text file, if the file is binary then
salt.wheel.file_roots.read(path, saltenv='base')
-
Write the named file, by default the first file found is written, but the index of the file can be specified to write to a lower priority file root
salt.wheel.file_roots.write(data, path, saltenv='base', index=0)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/wheel/all/salt.wheel.file_roots.html