Hey all,

I've been messing around with the hiera-foreman backend to see if it would 
let me migrate to hiera and use foreman and an ENC. 
https://github.com/torrancew/hiera-foreman

It works by querying each node's yaml file from foreman. Currently this 
code works when called from the hiera command line with the -m (mcollective 
option). It uses the mcollective facts to pull the fqdn variable to know 
which node to grab the yaml for. So far so good. However, this breaks when 
you attempt to use it as a hiera backend in a puppet module, since it no 
longer has the mcollective facts, and fqdn available to it. 

So my question is, what is the recommended way of querying the current 
hostname(s) in a hiera backend for it to know what host it should lookup 
the needed yaml? 

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Yhe1cfLjofAJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to