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 this..
--- !ruby/object:Puppet::Node
Which doesn't make may yaml parsers happ
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
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
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
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
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
Hi all,
Yesterday I emailed Kirill Simonov, the creator of PyYAML, to get help to
parse Puppet YAML file.
He gladly helped with the following code. This code is for parsing Puppet
log, but I'm sure you can modify it to parse other Puppet YAML file.
The idea is to create the correct loader for th