Hi,
Sounds like a job for https://github.com/dalen/puppet-puppetdbquery potentially? pdbresourcequery or maybe even the hiera backend.
Hi,
This particular hiera backend, from what I understand, is extracting
values from puppetdb "on the fly", so you don't have to put any values
in hiera yaml/json files save for a relevant puppetdb query. This
would centralize data gathering and localize it to a "data component".
Otherwise you end up with puppetdb queries within your manifests which
could be not what you want. Then again, this really depends on your
preferences. Good luck and tell us if this worked for you.
Perhaps you can use datacat_fragments exported resources and then collect them and put them together with the datacat_collector.
https://github.com/richardc/puppet-datacat/
Regards,
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7732833b-55f8-4e1b-8869-4ec231d36964%40googlegroups.com.
Perhaps you can use datacat_fragments exported resources and then collect them and put them together with the datacat_collector.
On 10 September 2014 08:08, Daniel Siechniewicz <dan...@siechniewicz.com> wrote:Hi,
This particular hiera backend, from what I understand, is extracting
values from puppetdb "on the fly", so you don't have to put any values
in hiera yaml/json files save for a relevant puppetdb query. This
would centralize data gathering and localize it to a "data component".
Otherwise you end up with puppetdb queries within your manifests which
could be not what you want. Then again, this really depends on your
preferences. Good luck and tell us if this worked for you.It looks like it's designed to deal with facts and classes only. I really need something that can get data from resources (defined types).
It's crappy design, but I could move *some* of the global variables defined in my type's module into facts to make those available, but I don't see a decent way to get data out of the resources, so I don't think it solves the whole problem.