[Puppet Users] Inserting Data back into hiera

Spencer Krum
Wed, 19 Mar 2014 03:40:16 -0000

Hello,

The other day I was on IRC and someone asked how to export strings in
PuppetDB. As far as I am aware this isn't possible with PuppetDB. It is
possible with certain hiera backends.

I've created a hiera_insert module at
https://github.com/nibalizer/hiera-insert. This module only has one
function right now, redis_insert(). When using the redis backend to
hiera(and some assumptions I've hardcoded for now), its possible to push
key:value pairs into hiera and pull them out.

On its own this isn't very interesting. But it enables multi node
communication. And since you can configure the hiera lookups on
'subscriber' nodes to fail catalog compilation until the key they're
looking up on is present, you have some guarantees of in order execution
across your infrastructure.

I'm wondering if other people think this is a good idea? Are there other
implementations I should be contributing to? Would people use it if it
supported different hiera backends? Really just interested in feedback.

It's not on the forge right now because I still consider it experimental
and proof of concept. But if there is interest I will be happy to publish
it.

Thanks,
Spencer


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3d79ded1-1df5-4c82-8bf7-d67cdd872166%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.