####Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Usage - Example usage code with description
- Parameters
- Limitations - OS compatibility, etc.
- References - source info for module creation
##Overview
This module configures NTP servers on Windows machines.
##Module Description
This module requires the registry and stdlib modules that are found at their appropriate links.
This module configures the w32time service to use a standard time server (time.windows.com) or an array or custom time servers. It achieves this through registry entries.
##Usage
###Basic OS default example In this example the module will ensure the w32time service is running and syncronizing with the Microsoft default time.windows.com server:
include 'winntp'
###Example of setting the time servers to two custom addresses In this example the two servers that are passed as variables will be set on all nodes with this classification applied:
class { 'winntp':
servers => ['time.nist.gov', 'pool.ntp.org'],
}
##Parameters
The following parameters are available in the winntp
class:
###servers
(optional)
Specifies the time servers to be set.
Valid Input: Array of strings
Default: "time.windows.com"
###special_poll_interval
(optional)
Specifies the poll time in seconds.
Valid Input: integer
Default: 900
###max_pos_phase_correction
(optional)
Specifies the max positive (forward) sample time a server can accept in seconds.
Valid Input: integer
Default: 54000
###max_neg_phase_correction
(optional)
Specifies the max negetive (backwards) sample time a server can accept in seconds.
Valid Input: integer
Default: 54000
###purge_unmanaged_servers
(optional)
Purge servers not specified by this module if they exist.
Valid Input: boolean
Default: true
##Limitations The module is compatiable with Windows machines.
##References
These reference articles were used to formulate this modules functionality: