puppet - Compile a node's catalog to JSON without a master? -


i'm looking improve org's puppet work lifecycle comparing differences actual node catalogs. came across this project compiles catalogs nodes , creates diff them, seems require online master.

i need able tool does, albeit without master - i'd compile deterministic json or yaml blob describes of resources managed puppet given node , given set of facts.

is there way me without online master?

i have written 2 blog posts showing 2 ways can compile json catalogs without needing puppet master.

if have rspec-puppet set then, first solution easy. add following file.write statement inside 1 of blocks:

require 'spec_helper'  describe 'myclass'   {     file.write(       'myclass.json',       pson.pretty_generate(catalogue)     )     #is_expected.to compile.with_all_deps   } end 

blog post here.

the second method more involved, , should consult second blog post compiling puppet catalog – on laptop.

finally, wrote post on using catalog-diff tool diff 2 catalogs while refactoring, may of interest.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo