Version information
Start using this module
Add this module to your Puppetfile:
mod 'geoffwilliams-windows_timezone', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
windows_timezone
Table of Contents
- Description
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
Set the Windows timezone using Puppet
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_timezone
: Set the windows timezone using thetzutil
command
Classes
windows_timezone
You must specify the timezone to use in the correct format to the tz
parameter
otherwise this class will take no action.
- See also https://github.com/GeoffWilliams/puppet-windows_timezone/blob/master/doc/windows_timezones.txt https://stackoverflow.com/a/16656265/3441106
Examples
Setting the timezone
class { "windows_timezone":
tz => "New Zealand Standard Time",
}
Parameters
The following parameters are available in the windows_timezone
class.
tz
Data type: Optional[String]
The timezone to set this node to use. You must only the names
allowed by the tzutil -l
command. This has been captured on a Windows
2012 VM for your convenience and can be found at /doc/windowstimezones.txt
inside this module. The value to use for tz
is the _second line of each
entry.
Default value: undef
Dependencies
- puppetlabs-stdlib (>= 1.0.0)