Today, I had a small issue while using Puppet. To make it quick: I got a circular dependency in my Puppet recipes and Puppet failed with a verbose but not so helpful message:
Of course, I tried the ‘–graph’ option but, due to it’s size, the generated diagram was anything but readable.
I decided to script my way out of this tangle and, with help from this forum entry, I was able to quickly piece together a Ruby script that detects cycles in a graph:
The script reads a file containing lines of the form:
and outputs :
To use the script:
Rejoice ! ;-)