Looking at the code (mostly lib/puppet/indirector/node/ldap.rb) it
appears that the ldap attributes are carried over directly as variable
names, resulting in a variable "console-port" that there's no
syntactically valid way to address directly.  The easiest solution I
can think of (and someone else may well have a better idea) would be a
function along the lines of:

module Puppet::Parser::Functions
  newfunction(:console_port, :type => :rvalue) { |args|
lookupvar('console-port')).to_i }
end

But I'm not thrilled with that as an answer.

-- Markus

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to