Re: [Puppet Users] parsing puppet YAML

2013-12-12 Thread Dan White
Continue down the thread: http://www.mail-archive.com/puppet-users@googlegroups.com/msg11545.html and then this should help http://www.skorks.com/2010/04/serializing-and-deserializing-objects-with-ruby/ Puppet::Node is a data structure like Puppet::Transaction::Report and Puppet::Util::Log as

Re: [Puppet Users] parsing puppet YAML

2013-12-12 Thread Stuart Cracraft
Where did this go? On Friday, May 21, 2010 9:44:33 PM UTC-7, Luke Baker wrote: > Hey there, > > > > I’ve playing with parsing some of the yaml data that puppet creates. Has > anyone had luck doing this with python or the like? It seems that in every > yaml file, there is a comment at the top

Re: [Puppet Users] parsing puppet YAML

2010-05-22 Thread Nigel Kersten
On Fri, May 21, 2010 at 9:44 PM, Baker, Luke Jefferson wrote: > Hey there, > > > > I’ve playing with parsing some of the yaml data that puppet creates. Has > anyone had luck doing this with python or the like? It seems that in every > yaml file, there is a comment at the top of the file like thi

Re: [Puppet Users] parsing puppet YAML

2010-05-22 Thread Nigel Kersten
You can load it in Python, you just need to do a bit more extra work first. I can get you an example on Monday or whenever Comcast fix my home internet connection... On Sat, May 22, 2010 at 12:43 AM, Ohad Levy wrote: > Hi Luke, > > Thats a dump of a ruby object in yaml, meaning that if you woul

Re: [Puppet Users] parsing puppet YAML

2010-05-22 Thread Ohad Levy
Hi Luke, Thats a dump of a ruby object in yaml, meaning that if you would like to restore the object (and its methods) you would need to run it in ruby and load the puppet libraries. what are you trying to achieve? there are a few examples out there already. Ohad On Sat, May 22, 2010 at 12:44 P