I am using a simple puppet setup for a large number of servers. Puppet gets information from a CMDB using External Node Classifiers. This works perfectly.
After each run, the Puppet master posts the status for the run to the CMDB using a custom report module. This also works great.
What I would like is Puppet to post the facts for a node after each run to the CMDB.
Doing this, the CMDB could auto update things like memory, MAC address etc.
The question is; How can I achieve this?
The report mechanism only provides status and some metrics.
It's not so easy to write a custom storeconfig module (or at least I couldn't find any information regarding this).
Thanks for any help.
Best Answer
I created a report module in Puppet that solved this particular use case. The reporter tries to read the latest yaml report then add extra stuff to the post.
If you want to learn more about writing custom Puppet reports, check When Puppet reports part 2