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 it's the second, you can use the /node endpoint: 
http://docs.puppetlabs.com/puppet/latest/reference/http_api/http_node.html 
<http://docs.puppetlabs.com/puppet/latest/reference/http_api/http_node.html>

Hope this helps
--eric0


> On Sep 3, 2015, at 1:15 AM, Sergiu Cornea <[email protected]> 
> wrote:
> 
> Good morning guys,
> 
> I am not sure if I am asking the right question, however, I am looking for a 
> Puppet / Foreman Web API that when called with a node name it will display 
> the contents of that YAML file? The reason why I am asking is that I want a 
> particular node YAML file to be displayed in a WebUI.
> 
> Does anyone knows how to do this? 
> 
> Thank you,
> 
> Regards,
> Sergiu
> 
> This message and its attachments are private and confidential. If you have 
> received this message in error, please notify the sender and remove it and 
> its attachments from your system.
> 
> The University of Westminster is a charity and a company limited by 
> guarantee. Registration number: 977818 England. Registered Office: 309 Regent 
> Street, London W1B 2UW.
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-dev/e9fd5319-7761-4a50-84e2-ac675b0f0b25%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-dev/e9fd5319-7761-4a50-84e2-ac675b0f0b25%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

Eric Sorenson - [email protected] 
<mailto:[email protected]> - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/E1C52EB0-99B2-4CD0-A8B3-5DCAEF710C29%40puppetlabs.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to