On Tue, Sep 27, 2011 at 3:20 PM, Dan Bode <[email protected]> wrote: > I can think of something really hacky that I don't recommend for production, > it could be ok for debugging purposes. > > notice(inline_template( '<%= $dangerous_counter = $dangerous_counter || 0; > $dangerous_counter = $dangerous_counter + 1 %>' )) > > will create a global variable in Ruby, I have a feeling that this will > increment for all nodes if you are running a master though.
I hope that's not the only way. What I'm trying to do here isn't that unusual. I have an several instances of an application running, each with different port numbers. The definition sets the values for the instance, but rather than listing the port numbers, which can cause copy and paste errors, I wanted to have the port numbers auto incremented from a base value. Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
