Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'ghoneycutt-timezone', '4.0.0'
Learn more about managing modules with a PuppetfileDocumentation
timezone
Table of Contents
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with timezone
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Module description
This module manages the timezone. Documented with Puppet Strings at http://ghoneycutt.github.io/puppet-module-timezone/.
Setup
What timezone affects
It symlinks /etc/localtime
to the appropriate timezone under
/usr/share/zoneinfo/
. On Debian and Ubuntu it manages /etc/timezone
.
Setup requirements
This module has no dependencies outside of stdlib.
Beginning with timezone
Include the timezone
class to set your timezone to 'UTC'.
include timezone
Usage
To set the timezone to something other than the default of 'UTC'.
Example using a manifest
class { 'timezone':
timezone => 'Europe/Berlin',
}
Example using Hiera
timezone::timezone: 'Europe/Berlin'
Limitations
This module officially supports the platforms listed in the
metadata.json
. It does not fail on unsupported platforms and has been
known to work on many Linux platforms since its creation in 2014.
Development
See CONTRIBUTING.md
License
See LICENSE file.
Reference
Table of Contents
Classes
timezone
: This module manages the system's default timezone setting.
Classes
timezone
This module manages the system's default timezone setting.
Examples
Declaring the class
include timezone
Parameters
The following parameters are available in the timezone
class:
timezone
Data type: String[1]
The systems default timezone, e.g. 'UTC' or 'Europe/Berlin'. See
/usr/share/zoneinfo
for available values.
Default value: 'UTC'
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v4.0.0 (2023-11-15)
Merged pull requests:
v3.0.0 (2022-09-17)
Merged pull requests:
- Update PDK and support Puppet 7 #9 (ghoneycutt)
- Remove dependency pinnings from Gemfile #8 (ghoneycutt)
v2.0.0 (2019-02-13)
Merged pull requests:
- Release v2.0.0 - Modernize module #7 (ghoneycutt)
v1.2.1 (2016-11-04)
v1.2.0 (2016-11-04)
Merged pull requests:
- Add support for Ruby v2.3.1 #6 (ghoneycutt)
v1.1.1 (2016-07-12)
Merged pull requests:
- Docs and testing fixes #5 (ghoneycutt)
v1.1.0 (2016-05-27)
Merged pull requests:
- Support puppet v3 with future parser and puppet v4 (fixed) #3 (Phil-Friderici)
- Support puppet v3 with future parser and puppet v4 #2 (ghoneycutt)
v1.0.1 (2015-02-11)
v1.0.0 (2014-12-09)
v0.3.0 (2014-10-15)
v0.2.0 (2014-05-23)
v0.1.0 (2014-03-28)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 8.0.0 < 10.0.0)
Copyright (C) 2014 Niklas Grossmann <ngrossmann@gmx.net> Copyright (C) 2014-2023 Garrett Honeycutt <code@garretthoneycutt.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.