Skip to content

Configure timezone settings through puppet

License

Notifications You must be signed in to change notification settings

simp/pupmod-saz-timezone

 
 

Repository files navigation

puppet-timezone CI

Manage timezone settings via Puppet

Usage

Set timezone to UTC

    class { 'timezone':
        timezone => 'UTC',
    }

Set timezone to Europe/Berlin

    class { 'timezone':
        timezone => 'Europe/Berlin',
    }

Other class parameters

  • ensure: present or absent, default: present
  • autoupgrade: true or false, default: false. Auto-upgrade package, if there is a newer version
  • hwutc: true or false, default: undef. This parameter will ensure that the real time clock is set to UTC rather than the local timezone. This is not supported on all platforms and will fail if you try and set it on an unsupported platform. A typical error message from the timedatectl command, if this value is set to false would be:
Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.

About

Configure timezone settings through puppet

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 66.2%
  • Puppet 24.3%
  • HTML 6.6%
  • Dockerfile 2.9%