On Thu, Sep 11, 2008 at 12:13 PM, Johnny Tan <[EMAIL PROTECTED]> wrote: > > I'm using 3 environments in puppet. Each environment points > to different IPs and/or hostnames for things ranging from > nfs mounts to mail servers, etc. > > Ideally, I'd like to use the exact same file in each > environment, where the IPs/hostnames/etc get called via a > variable. > > Is there a best practice established in terms of where to > store such variables? It seems like each node section in > nodes.pp is the logical choice, but I suppose it's also > possible to put a case statement at the beginning of each > module that assigns the variables based on $environment. > > I'm curious to see how other people are doing it.
I use the node definition for most of that stuff. The main differecne in my enviroments is that I expect production to work. and I use development for doing just that. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
