Skip to content

Instantly share code, notes, and snippets.

@dalen
Last active December 14, 2015 04:39
Show Gist options
  • Save dalen/5029883 to your computer and use it in GitHub Desktop.
Save dalen/5029883 to your computer and use it in GitHub Desktop.
Get cached puppet catalog
require 'puppet'
require 'puppet/face'
Puppet.initialize_settings
catalog = Puppet::Face[:catalog, '0.0.1'].find(Puppet[:certname], {:terminus => 'yaml'})
print catalog.inspect + "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment