Last active
December 15, 2015 04:50
-
-
Save graste/5204294 to your computer and use it in GitHub Desktop.
Export puppet run on guest system via .dot as .svg to host system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrantfile: | |
``` | |
config.vm.customize ["modifyvm", :id, "--name", "cibox"] | |
... | |
config.vm.provision :shell, :inline => "apt-get update --fix-missing" | |
... | |
cibox.vm.provision :puppet do |puppet| | |
... | |
puppet.options = "--verbose --debug --graph" | |
end | |
``` | |
``` | |
$ vagrant ssh-config > ssh-config | |
$ ssh -F ssh-config cibox dot -Tsvg -o /tmp/resources.svg /var/lib/puppet/state/graphs/resources.dot | |
$ scp -F ssh-config cibox:/tmp/resources.svg . | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment