Version information
released Dec 8th 2016
This version is compatible with:
- Puppet Enterprise >=2016.1.0 <= 2016.4.0
- Puppet >= 4.5.0 < 5.0.0
Start using this module
Add this module to your Puppetfile:
mod 'ncorrare-windowstime', '0.4.3'
Learn more about managing modules with a PuppetfileDocumentation
ncorrare/windowstime — version 0.4.3 Dec 8th 2016
windowstime
Table of Contents
- Description
- Setup - The basics of getting started with windowstime
- Development - Guide for contributing to the module
Description
This module configures NTP sync on Windows Servers. It's extremely useful on standalone instances not connected to AD. It switches the W32time Service from triggered to running, so it's constantly verifying and syncing the clock. It can also configure the systems in the correct timezone.
Setup
What windowstime affects
- Alters the HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer to the defined list (and flags) of NTP servers.
- Configures the w32time service.
- Does an initial resync.
- If timezone is set, it will configure the system to the specified timezone.
Beginning with windowstime
You can just include the class to configure the server to sane defaults:
include ::windowstime
Or configure your own NTP servers:
class { 'windowstime':
servers => { 'pool.ntp.org' => '0x01',
'time.windows.com' => '0x01',
}
}
Or configure your NTP servers and the timezone:
class { 'windowstime':
servers => { 'pool.ntp.org' => '0x01',
'time.windows.com' => '0x01',
},
timezone => 'Greenwich Standard Time',
}
Timezone values are validated to parameters accepted from the tzutil command. You can check the full list on data/common.yaml.
Please ensure that servers have the correct flag:
- 0x01 SpecialInterval
- 0x02 UseAsFallbackOnly
- 0x04 SymmatricActive
- 0x08 Client
Development
Regular rules apply, send a PR and I promise to look at it as soon as I can.
Dependencies
- puppetlabs-stdlib (4.x)
- puppetlabs-registry (>= 1.1.0)