hello, ----- "linuxdatacenter" <linuxdatacen...@gmail.com> wrote:
> Yeah - ntpd was just a dumb example - of course you can do it this > way ;-). > > But for more sophisticated puppet setups - what are your ways to > determine which environment you are in. I know puppet can manage > different environments at one time (each with its own set of modules > and files - you configure puppetmaster for this), but this AFAIK > requires you to maintain multiple instances of your modules and > classes. I define a fact - perhaps $location - and use extlookup[1] to manage the data based on those facts, this way you can have simple code and adding more dc's locations etc is trivial in future and requires no/very little code change [1] http://www.devco.net/archives/2009/08/31/complex_data_and_puppet.php > > -Regards > > On May 3, 9:26 am, Patrick <kc7...@gmail.com> wrote: > > On May 2, 2010, at 9:38 PM, linuxdatacenter wrote: > > > > > > > > > Hi, > > > > > Just want to know how you use puppet to cover a scenario where > you > > > have a production and backup datacenter. Both environments should > be > > > similar but not identical (just a dumb example - your ntp setup > is > > > probably different in each). I think it's desirable to have just > one > > > implementation of modules and classes shared among production and > > > backup so as not to make changes in 2 places which is error > prone. > > > > > I've got this setup covered by having a different domain name in > each > > > environment and use the ${domainname} fact to distinguish between > > > them. > > > > > So for ntp I just have: > > > > > file {"/etc/ntp.conf": > > > .... > > > source => puppet://${puppetmaster}/ntp.conf.${domainname} > > > } > > > > > I realize this setup is kinda primitive ;-) but right now it > works > > > fine. > > > I just wonder how you guys have it set up - maybe there's some > more > > > efficient and elegant way. > > > > > -Regards > > > > I actually just set the ntpd server to be a local server name and > let DNS sort it out using the search domain. > > -Patrick > > > > -- > > 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 > athttp://groups.google.com/group/puppet-users?hl=en. > > -- > 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. -- R.I.Pienaar -- 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.