On 11/01/2010 06:51 PM, Robert Scheer wrote:
> ...
> I could solve that by making a custom fact, but besides the huge overhead
> of "puppetd --configprint server" running every 30 minutes on every node,
> it is just weird for a server to have to ask the client for its own name.
> 
> So I'd really like to fix this in puppet code on the masters only.
> Is there a way to access the local configuration parameter 'server'
> within puppet? Or is there another, better solution I am missing?

Sounds to me as though you had finally found a use for the generate
function, e.g. $master_host = generate("dnsdomainname -f").

http://docs.puppetlabs.com/references/stable/function.html#generate

;-) Just kidding, it's a useful feature alright. Maybe it will help you.

Regards,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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