- I already had a module with some functions and stuff for our in-house app, DCM, so I just reused that module for this purpose. You could also just make a new, blank module. It should have a
bolt_plugin.json
file in it to indicate to bolt that the module has a plugin(s) - Create a task to do your lookup. The easiest way is to name it
resolve_reference
, since that is the name of the hook, and bolt will automatically it. I used bash, but this is just a regular task, so you can use whatever language you want. My example has a single parameterquery
that I pull off of stdin withjq
. The output is a hash with a single keyvalue
, and the value for that key is the data that shoudl go in the inventory file. - Add your module to the
Puppetfile
in your bolt control repo andbolt puppetfile install
- Edit your
inventory.yaml
I know those are rough instructions, but they should get you started.