About | FAQ | Help
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Take a look at some of the puppet modules for managing an external resource with a rest API, like the kubernettes module. This is a dynamically generated set of custom resources which uses the swagger definition of the kubernettes APIs. You can see how the custom resource are written to interact with a rest endpoint, and duplicate that same kind of interaction for use with your REST api. There are a few other modules that do something similar, like the nexus_rest module.

You would still need to run your manifests using these resource on some node somewhere, and in most cases people either have a 'do nothing' node that stages everything (for use with modules like the above, or the https://forge.puppet.com/puppetlabs/aws), or you could just run that on a known/existing instance, like your puppet master

I hope that helps.