Timezone Recipe
Problem: inconsistent timezone information
Custom installations and grow servers tend to have inconsistent ideas about time zone information. Having different time zones creates problems when cooperating or correlating events from logfiles.
Solution
Use puppet to maintain consistent timezone information on your servers.
class timezone-base {
package { "tzdata":
ensure => installed
}
file { "/etc/localtime":
source => "file:///usr/share/zoneinfo/US/Central",
require => Package["tzdata"]
}
}
class timezone-central inherits timezone-base {
}
class timezone-eastern inherits timezone-base {
File["/etc/localtime"] {
source => "file:///usr/share/zoneinfo/US/Central"
}
}
node twincities {
include timezone-central
}
node newyork {
include timezone-eastern
}