Using puppet-classify to interface with the classifier service

I’ve been looking for an opportunity to share something with the Puppet Community and I think I found it in puppet-classify and how I’m using it along with MongoDB to manage classifications in a Puppet Enterprise deployment.

The approach I’ve taken is to backup and store our Puppet Classifications into MongoDB. That way, in the event of a rebuild, we can easily reimport all of our classifications. Where this approach has additional value is in tear down environment such as Vagrant. Puppet module developers can use Vagrant to deploy their own local puppetmaster and tear it down/rebuild it as often as they like since they can store their classifications in MongoDB and import them with ease. Anytime a developer wants to save off a classification, they can easily export to MongoDB for later retrieval or sharing with a co-worker.

Check it out on my github. This is my first ruby script

Share