On 07/20/2011 04:43 AM, Matthias Saou wrote:
* The definition is in a generic module for which it does not make sense to default the parameter to this calculated value.
Instead of passing in the port number you could pass a template for its creation node 'myvmhost' { createvm { [ 'vm01', 'vm02', 'vm03', 'vm04', 'vm05' ]: # VNC Port 59XY for vmXY vncport_template => "<%= name.sub('vm', '59') -%>", } } and in createvm do $vncport = inline_template($vncport_template) -- vagn -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.