On May 14, 2:13 pm, Luke Kanies <[email protected]> wrote: > On May 14, 2010, at 10:28 AM, donavan wrote: > > 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
Looks like the .24.8 ldap support isn't replacing dash with underscore. I tried both in a manifest & a quick Puppet::Node.find() from irb. The manifest evals false for $console_port. In the Puppet::Node object the @parameters hash clearly has the key as 'console-port'. I'll test in .25 when I have a chance to get that setup. Will file a bug report if I can still replicate there. Thanks for the time. -- 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.
