On May 14, 2010, at 10:28 AM, donavan wrote:

> Sorry for the cross post, didn't get much traction over in -user on
> this[1].
> 
> Using LDAP nodes (.24.8) I have a node like this example:
> 
> dn: cn=ns01.domain.com,cn=machines,o=domain
> cn: ns01.domain.com
> objectClass: top
> objectClass: puppetClient
> ipHostNumber: 192.201.112.90
> parentnode: basenode-without-autofs
> puppetclass: default_access
> console-port: 7...@cyclada4
> 
> And I'd like to access 'console-port' as a variable in a manifest.
> I've tried $console-port, which obviously fails. I've also tried $
> {console-port} which is a parse/compile error. Anything else besides
> trying to get clever with a get_var() type function?

Hmm.  This is probably a bug, and the ldap support should s/-/_/g, so at least 
you can get at the variable.

Otherwise, Markus's solution works.

-- 
I hate to advocate drugs, alcohol, violence, or insanity to anyone,
but they've always worked for me.             -- Hunter S. Thompson
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199

-- 
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