salt.pillar.git_pillar

Clone a remote git repository and use the filesystem as a pillar directory.

This looks like:

ext_pillar:
  • git: master git://gitserver/git-pillar.git
salt.pillar.git_pillar.envs(branch, repo_location)

Return a list of refs that can be used as environments

salt.pillar.git_pillar.ext_pillar(minion_id, pillar, repo_string)

Execute a command and read the output as YAML

salt.pillar.git_pillar.init(branch, repo_location)

Return the git repo object for this session

salt.pillar.git_pillar.update(branch, repo_location)

Ensure you are on the right branch, and execute a git pull

return boolean wether it worked