how to graph puppet dependencies

  • edit /etc/puppet/puppet.conf

[agent]
   graph = true
   graphdir = /var/lib/puppet/state/graphs
  • run puppet

    puppet agent -t --noop
  • convert the graphvis files to images

for file in ${graphdir}/*.dot
do
        dot -Tpng $file -o ${graphdir}/`basename $file .dot`.png
done
  • view graphs

    for file in ${graphdir}/*.png ; do ( display $file & ) ; done