On Tue, Sep 27, 2011 at 3:55 PM, Jason Slagle <raist...@tacorp.net> wrote: > > > On Tue, 27 Sep 2011, Douglas Garstang wrote: > >> 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. > > Call me crazy, but I'm not sure I see the "common use case" here. Puppet > does not process a manifest top down (Well at least not in a way that you > expect).
How's that relevant? I'm not declaring various resource types. I'm either calling definitions (in which case I'm pretty sure it does them in a top-down order), or doing it programatically. > > At best I would expect these port numbers to change at every addition. At > worst, I can see them changing every run. I presume you're going to use > these numbers elsewhere to configure some front end. I'm not sure you'd > want it reloading your apache, etc all the time as the port numbers bounce > around. I don't follow you. Why would the port numbers change around if they where programatically generated? Not that I can do that anyway, as you'll see in a followup post, as I cant reassign variables. Doug. -- 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.