On 04/09/15 01:25, Eric Sorenson wrote:
> Hi Sergiu - Which yaml file? Do you mean the output of the node
> classifier? Or the file corresponding to $vardir/yaml/node/$hostname.yaml ?
> 
> 
> If it's the first, it will depend on the Foreman ENC, but I believe it'd
> be a call to http://<yourforemanhost>/api/host/<nodename>  

If you're using Foreman's web UI then view the host, then click the YAML
button on the left.

The ENC script (node.rb) typically fetches
https://foreman.example.com/node/node.example.com?format=yml.  This is
outside of the regular API.

There's not an way to retrieve the rendered YAML in the regular
authenticated API, only the above one intended specifically for the ENC
script.

The URL Eric suggested will give you lots of useful info about the host,
but in JSON rather than Puppet's YAML ENC format.

-- 
Dominic Cleal
Red Hat Engineering

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/55E948B3.2070506%40redhat.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to