salt.pillar.hg_pillar

Use remote Mercurial repository as a Pillar source.

New in version 2015.8.0.

The module depends on the hglib python module being available. This is the same requirement as for hgfs_ so should not pose any extra hurdles.

This external Pillar source can be configured in the master config file as such:

ext_pillar:
  - hg: ssh://hg@example.co/user/repo
class salt.pillar.hg_pillar.Repo(repo_uri)

Deal with remote hg (mercurial) repository for Pillar

close()

Cleanup mercurial command server

pull()
update(branch='default')

Ensure we are using the latest revision in the hg repository

salt.pillar.hg_pillar.ext_pillar(minion_id, pillar, repo, branch='default', root=None)

Extract pillar from an hg repository

salt.pillar.hg_pillar.update(repo_uri)

Execute an hg pull on all the repos