Created
April 13, 2011 03:12
-
-
Save lak/916894 to your computer and use it in GitHub Desktop.
json support within Puppet.
This file contains 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
luke@syringe $ ruby -rpuppet -rpuppet/network/format_handler -e 'f = Puppet::Network::FormatHandler.format(:pson); k = Puppet::Indirector::Indirection; k.instances.collect { |n| k.instance(n).model }.each { |k| puts "%-40s: #{f.supported?(k)}" % k }' | |
Puppet::Node::Facts : true | |
Puppet::Node::Inventory : false | |
Puppet::Node : false | |
Puppet::Transaction::Report : false | |
Puppet::Resource : true | |
Puppet::Resource::Type : true | |
Puppet::Resource::Catalog : true | |
Puppet::SSL::Key : false | |
Puppet::SSL::Certificate : false | |
Puppet::SSL::CertificateRequest : false | |
Puppet::SSL::CertificateRevocationList : false | |
Puppet::SSL::Host : true | |
Puppet::Status : true | |
Puppet::FileBucket::File : true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After a bit of work:
luke@syringe $ ruby -rpuppet -rpuppet/network/format_handler -e 'f = Puppet::Network::FormatHandler.format(:pson); k = Puppet::Indirector::Indirection; k.instances.collect { |n| k.instance(n).model }.each { |k| puts "%-40s: #{f.supported?(k)}" % k }'
Puppet::Node::Facts : true
Puppet::Node::Inventory : false
Puppet::Node : true
Puppet::Transaction::Report : false
Puppet::Resource : true
Puppet::Resource::Type : true
Puppet::Resource::Catalog : true
Puppet::SSL::Key : false
Puppet::SSL::Certificate : false
Puppet::SSL::CertificateRequest : false
Puppet::SSL::CertificateRevocationList : false
Puppet::SSL::Host : true
Puppet::Status : true
Puppet::FileBucket::File : true