kevin
2009-Mar-14 16:15 UTC
[Puppet Users] Setting timezone in ubuntu and timezone conventions
Is there a puppet way to set timezones in ubuntu? I''ve been using dpkg-reconfigure, but that shows me a gui, which is somewhat distasteful Slightly off topic: What is the convention for setting timezones? Set them based on the servers phsyical location? On the admin''s location? Clients location? Ideas? --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Jonathan Moore
2009-Mar-14 16:45 UTC
[Puppet Users] Re: Setting timezone in ubuntu and timezone conventions
On 3/14/09, kevin <lazyweb@gmail.com> wrote:> What is the convention for setting timezones? Set them based on the > servers phsyical location? On the admin''s location? Clients > location? Ideas?I set my system clocks to UTC, then configure the local clock to whatever the local timezone. If I''m doing anything like centralized logging, it''s nice have everything in UTC and the convert the time stamps to local if needed / wanted. I''d also like to hear what others do here. -jon --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Jason Rojas
2009-Mar-14 19:07 UTC
[Puppet Users] Re: Setting timezone in ubuntu and timezone conventions
Afaik, most timezones are set up as a symlink /etc/localtime -> / whatever/path/zoneinfo This should be fairly easy to manage as long as all the machines are in the same timezone. Symbolic links are managed by the file type, so it''s Fairly simple: File { "/etc/localtime": ensure => "/path/to/correct_zone"; } At least that''s how it is in redhat distros. -Jason On Mar 14, 2009, at 12:15 PM, kevin <lazyweb@gmail.com> wrote:> > Is there a puppet way to set timezones in ubuntu? I''ve been using > dpkg-reconfigure, but that shows me a gui, which is somewhat > distasteful > > Slightly off topic: > > What is the convention for setting timezones? Set them based on the > servers phsyical location? On the admin''s location? Clients > location? Ideas? > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
John Ferlito
2009-Mar-14 23:04 UTC
[Puppet Users] Re: Setting timezone in ubuntu and timezone conventions
On Sat, Mar 14, 2009 at 09:15:27AM -0700, kevin wrote:> > Is there a puppet way to set timezones in ubuntu? I''ve been using > dpkg-reconfigure, but that shows me a gui, which is somewhat > distastefulFor ubuntu I do the following, which is pretty much what the GUI tool does.(I think most other distros would be exactly the same) file { "/etc/localtime": ensure => "/usr/share/zoneinfo/Australia/Sydney" } file { "/etc/timezone": content => "Australia/Sydney\n", } file { "/etc/default/locale": content => "LANG=\"en_AU.UTF-8\"\nLANGUAGE=\"en_AU:en\"\n" }> Slightly off topic: > > What is the convention for setting timezones? Set them based on the > servers phsyical location? On the admin''s location? Clients > location? Ideas?So IMHO the critial thing is that all your servers are on the same timezone no matter where they are in the world. This simply makes it easier when trying to compare logs on different servers when they are interacting with each other. As far as picking which time zone it depends on where all your team is. For myself all our admins are in Sydney/Australia so we set everything to that timezone. If you are larger and have admins in multiple timezones then UTC is probably best. Cheers, -- John Blog http://www.inodes.org/blog OLPC Friends http://olpcfriends.org --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
kevin
2009-Mar-15 22:03 UTC
[Puppet Users] Re: Setting timezone in ubuntu and timezone conventions
Thanks to all who replied. UTC sounds good to me. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---