Skip to content

Instantly share code, notes, and snippets.

@ferventcoder
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferventcoder/e62e68879f8845cbf30f to your computer and use it in GitHub Desktop.
Save ferventcoder/e62e68879f8845cbf30f to your computer and use it in GitHub Desktop.
Puppet - Find the default provider on a machine
#in irb/pry:
require 'puppet'
Puppet::Type.type(:package).new(:name => "x").provider.class
#another way to do it
ruby -rpuppet -e 'Puppet::Type.type(:package).new(:name => "x").provider.class'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment