Am I missing some clever way to use variables containing a dash in the
name?

We're using LDAP nodes I may 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. In
ruby land I end up resorting to stupid tricks like
instance_variable_get('@console-port') or ['console-port'] to get
this.

Any suggestions besides a hackier implementation of get_var() function?

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