{"id":1324,"date":"2010-02-26T22:25:42","date_gmt":"2010-02-26T21:25:42","guid":{"rendered":"http:\/\/www.devco.net\/?p=1324"},"modified":"2010-06-27T19:11:21","modified_gmt":"2010-06-27T18:11:21","slug":"what_does_puppet_manage_on_a_node-2","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2010\/02\/26\/what_does_puppet_manage_on_a_node-2.php","title":{"rendered":"What does Puppet manage on a node?"},"content":{"rendered":"

Last year I wrote<\/a> a tool to parse the localconfig.yaml<\/em> from Puppet 0.24 and display a list of resources and classes. This script failed when 0.25 came out, I’ve updated it for 0.25 support.<\/p>\n

The yaml cache has some added features in 0.25 so now I can also show the list of tags on a node, output would be:<\/p>\n

<\/p>\n

\r\n# parselocalconfig.rb \/var\/lib\/puppet\/client_yaml\/catalog\/fqdn.yaml\r\nClasses included on this node:\r\n        fqdn\r\n        common::linux\r\n        \r\n\r\nTags for this node:\r\n        fqdn\r\n        common::linux\r\n        \r\n\r\nResources managed by puppet on this node:\r\n        yumrepo{centos-base: }\r\n                defined in common\/modules\/yum\/manifests\/init.pp:24\r\n\r\n        file{\/root\/.ssh: }\r\n                defined in common\/modules\/users\/manifests\/root.pp:20\r\n\r\n        \r\n<\/pre>\n

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

Last year I wrote a tool to parse the localconfig.yaml from Puppet 0.24 and display a list of resources and classes. This script failed when 0.25 came out, I’ve updated it for 0.25 support. The yaml cache has some added features in 0.25 so now I can also show the list of tags on a […]<\/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":[1],"tags":[121,21,13],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/1324"}],"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=1324"}],"version-history":[{"count":8,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/1324\/revisions"}],"predecessor-version":[{"id":1513,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/1324\/revisions\/1513"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=1324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=1324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=1324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}

You can get the script that supports both 0.24 and 0.25 here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"