Version information
Start using this module
Add this module to your Puppetfile:
mod 'geoffwilliams-windows_ntp', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
windows_ntp
Table of Contents
- Description
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
NTP client for windows boxes that are not managed by AD
Usage
See reference and examples
Limitations
- Not supported by Puppet, Inc.
Development
PRs accepted :)
Testing
This module supports testing using PDQTest.
Test can be executed with:
bundle install
make
See .travis.yml
for a working CI example
Reference
Table of Contents
Classes
windows_ntp
: Configure NTP on Windows
Classes
windows_ntp
Configure NTP on Windows when not being managed by a windows domain, eg for DMZs.
You must specify an NTP server to sync from in the server
parameter for the
module to configure your system. Some common public NTP servers are:
-
time.windows.com
-
pool.ntp.org
-
See also https://support.microsoft.com/en-us/help/262680/a-list-of-the-simple-network-time-protocol-sntp-time-servers-that-are http://support.ntp.org/bin/view/Servers/WebHome
Examples
Hiera data
windows_ntp::server: "time.windows.com"
use the default NTP server (data from Hiera)
include windows_ntp
use a specific NTP server
class { "windows_ntp":
server => "nz.pool.ntp.org",
}
Parameters
The following parameters are available in the windows_ntp
class.
server
Data type: Optional[String]
NTP server to sync time from
Default value: undef
Dependencies
- puppetlabs-stdlib (>= 1.0.0)
- puppetlabs-powershell (>= 2.1.0)