salt.pillar.http_yaml module

A module that adds data to the Pillar structure retrieved by an http request

Configuring the HTTP_YAML ext_pillar

Set the following Salt config to setup Foreman as external pillar source:

ext_pillar:
  - http_yaml:
      url: http://example.com/api/minion_id
      ::TODO::
      username: username
      password: password

Module Documentation

salt.pillar.http_yaml.ext_pillar(minion_id, pillar, url=None)

Read pillar data from HTTP response.

:param url String to make request :returns dict with pillar data to add :returns empty if error