{"id":1332,"date":"2010-03-03T19:36:02","date_gmt":"2010-03-03T18:36:02","guid":{"rendered":"http:\/\/www.devco.net\/?p=1332"},"modified":"2010-06-27T19:10:56","modified_gmt":"2010-06-27T18:10:56","slug":"puppet_localconfig_parser_-_20100303","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2010\/03\/03\/puppet_localconfig_parser_-_20100303.php","title":{"rendered":"Puppet localconfig parser – 20100303"},"content":{"rendered":"

I’ve had some good feedback on my previous post<\/a> about the puppet localconfig parser, have implemented the requested features so here’s a new version.<\/p>\n

First the ability to limit what resources are being printed:<\/p>\n

<\/p>\n

\r\n# parselocalconfig.rb --limit package\r\nClasses included on this node:\r\n        fqdn\r\n        common::linux\r\n\r\nResources managed by puppet on this node:\r\n        package{redhat-lsb: }\r\n                defined in common\/modules\/puppet\/manifests\/init.pp:15\r\n<\/pre>\n

<\/code><\/p>\n

You should only see package resources. You can also disable the classes list using –no-classes<\/em> and on 0.25.x disable the tags list with –no-tags<\/em>. <\/p>\n

I’ve improved the detection of where to find the yaml file for 0.25 nodes and added an option –config<\/em> if your config file is not in the usual place.<\/p>\n

You can get the latest version here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

I’ve had some good feedback on my previous post about the puppet localconfig parser, have implemented the requested features so here’s a new version. First the ability to limit what resources are being printed: # parselocalconfig.rb –limit package Classes included on this node: fqdn common::linux Resources managed by puppet on this node: package{redhat-lsb: } defined […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[7],"tags":[121,21,13],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/1332"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=1332"}],"version-history":[{"count":3,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/1332\/revisions"}],"predecessor-version":[{"id":1512,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/1332\/revisions\/1512"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=1332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=1332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=1332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}