natemccurdy / puppet-purge_node

A Puppet Task to purge nodes
Apache License 2.0
5 stars 5 forks source link

Add ability to supply a JSON array as input #9

Closed ragnarkon closed 4 years ago

ragnarkon commented 4 years ago

Adds the ability to allow a user to supply a JSON array as input.

Was also able to implement using environment as the input method, but had to use a rescue block to make it happen. Stdin seems cleaner, so went with that.

natemccurdy commented 4 years ago

Thanks for the contribution @ragnarkon! Though can I ask that you please update the README with examples of supplying JSON as the input?

ragnarkon commented 4 years ago

@natemccurdy Updated README. I write an orchestrator API example, since that seems to be the most logical use case for JSON input. But you can also input JSON via the command line and from the console.