Saving graphs from puppet-catalog-test runs?

22 views
Skip to first unread message

Matt Wise

unread,
Apr 22, 2014, 3:49:29 PM4/22/14
to puppe...@googlegroups.com
When we run our puppet-catalog-test runs (https://github.com/invadersmustdie/puppet-catalog-test), we'd like to generate and save the .dot graph files so that we can turn them into images. I don;t know enough about the internal workings of Ruby/Puppet to do this -- but does anyone have any ideas? I'm sure it will require patching puppet-catalog-test

Luke Kanies

unread,
Apr 22, 2014, 8:22:18 PM4/22/14
to puppe...@googlegroups.com
On Apr 22, 2014, at 12:49 PM, Matt Wise <ma...@nextdoor.com> wrote:

When we run our puppet-catalog-test runs (https://github.com/invadersmustdie/puppet-catalog-test), we'd like to generate and save the .dot graph files so that we can turn them into images. I don;t know enough about the internal workings of Ruby/Puppet to do this -- but does anyone have any ideas? I'm sure it will require patching puppet-catalog-test

I don't know anything about puppet-catalog-test, but IIRC the Catalog class has a 'to_dot' method on it; you should be able to call that, and just send the output to disk.

If you search for 'dot' or 'to_dot' in the code base, you should be able to track it down pretty quickly, I think.

(It's been ages since I looked at this, but I don't think it's changed much.)
Reply all
Reply to author
Forward
0 new messages