You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vanzhiganov@sodabrew It largely depends on what kind of end point you are connecting to... The parameter :output is used to determine this...
If :output is set to json then hiera-http will treat the returned HTTP resonse body as a JSON document and search for the lookup key as a hash element, if that element exists then the value is returned. The same goes for setting :output to yaml. If :output is set to plain then it is assumed that whatever the endpoint returns requires no parsing and is sent back as the response "as-is".... A few examples, let's say you are looking up the key apache::port
Using json
http://my_cms/data/foo/bar returns:
{
"apache::port": "80",
"foo::bar": "tango"
}
Using the json setting for output the result 80 will be returned.
Using plain
http://my_cms/data/foo/bar returns:
80
The whole document, in this case, "80" will be returned.
What should the data retrieved from the HTTP service look like?
If there's documentation on Puppet Labs' site that answers this, could you link to it? :)
The text was updated successfully, but these errors were encountered: