[Puppet Users] Re: Display the contents of a yaml file
On Friday, September 4, 2015 at 3:35:04 AM UTC-5, Sergiu Cornea wrote: > > Thank you John, > > Thank you for your answer and sorry for the ambiguity. > > The YAML file I am referring to is the node's YAML file such as in the > Puppet's NTP complete example: > > What you are looking at is external data in YAML format, such as would be *consumed* by Hiera. It is an input, not an output, and in general it is not monolithic -- the data for a given node is often spread across multiple files. Moreover, the data, based on those files, that Hiera feeds to Puppet are context-sensitive in general: Hiera can interpolate contextual values based on Puppet variables into the data and feed the result back to Puppet, or it can even use such contextual data to select from which files to draw input in the first place. Bottom line: it's still unclear what you want -- Hiera input or Hiera output -- and if the latter, it doesn't exist in any objective, context-insensitive sense. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0236686e-138c-439a-9016-d3893ac581d1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Display the contents of a yaml file
Hi, Look: hiera-file: designed by Adrien Thebo to manage a data type that previously could not be stored in a healthy way in Hiera, that is, simple files. or hiera-http and hiera-mysql: are other powerful backends Hiera written by Craig Dunn. They allow us to recover our data either via a REST interface or MySQL queries on a database. Le vendredi 4 septembre 2015 10:35:04 UTC+2, Sergiu Cornea a écrit : > > Thank you John, > > Thank you for your answer and sorry for the ambiguity. > > The YAML file I am referring to is the node's YAML file such as in the > Puppet's NTP complete example: > > --- classes: - ntp - apache - postfix ntp::restrict: - ntp::autoupdate: > false ntp::enable: true ntp::servers: - 0.us.pool.ntp.org iburst - > 1.us.pool.ntp.org iburst - 2.us.pool.ntp.org iburst - 3.us.pool.ntp.org > iburst > > What I was looking for it was a way of displaying the node's YAML file > using Puppet or Foreman's Web API. > > Once again thank you for your help. > > Kind regards, > Sergiu > > On Thursday, 3 September 2015 09:10:42 UTC+1, Sergiu Cornea 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 >> > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7700e5c1-96f1-4093-915e-bd64783da439%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Display the contents of a yaml file
Thank you John, Thank you for your answer and sorry for the ambiguity. The YAML file I am referring to is the node's YAML file such as in the Puppet's NTP complete example: --- classes: - ntp - apache - postfix ntp::restrict: - ntp::autoupdate: false ntp::enable: true ntp::servers: - 0.us.pool.ntp.org iburst - 1.us.pool.ntp.org iburst - 2.us.pool.ntp.org iburst - 3.us.pool.ntp.org iburst What I was looking for it was a way of displaying the node's YAML file using Puppet or Foreman's Web API. Once again thank you for your help. Kind regards, Sergiu On Thursday, 3 September 2015 09:10:42 UTC+1, Sergiu Cornea 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 Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0471c65d-103b-4304-beca-9f282cd9a1d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Display the contents of a yaml file
On Thursday, September 3, 2015 at 3:10:42 AM UTC-5, Sergiu Cornea 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? > By "that YAML file" do you mean the node's most recent catalog in YAML format? Do you mean a freshly-built catalog in YAML format? The ENC output for that node? Something else? > The reason why I am asking is that I want a particular node YAML file to > be displayed in a WebUI. > > I'm afraid that doesn't help clarify just what YAML you want. > Does anyone knows how to do this? > > Probably, once we figure out what the "this" is. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5712cf2e-5b49-46fa-8416-33f61bc4fdda%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.