salt.pillar.http_json module
A module that adds data to the Pillar structure retrieved by an http request
Configuring the HTTP_JSON ext_pillar
Set the following Salt config to setup Foreman as external pillar source:
ext_pillar:
- http_json:
url: http://example.com/api/minion_id
::TODO::
username: username
password: password
Module Documentation
-
salt.pillar.http_json.
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