22.31.5. salt.wheel.pillar_roots

The pillar_roots wheel module is used to manage files under the pillar roots directories on the master server.

salt.wheel.pillar_roots.find(path, saltenv='base', env=None)

Return a dict of the files located with the given path and environment

salt.wheel.pillar_roots.list_env(saltenv='base', env=None)

Return all of the file paths found in an environment

salt.wheel.pillar_roots.list_roots()

Return all of the files names in all available environments

salt.wheel.pillar_roots.read(path, saltenv='base', env=None)

Read the contents of a text file, if the file is binary then

salt.wheel.pillar_roots.write(data, path, saltenv='base', index=0, env=None)

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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.31.4. salt.wheel.key

Next topic

23. Salt Best Practices

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.