Version information
released May 18th 2024
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
- Raspbian, , , openSUSE, SLES, Archlinux, CentOS
Start using this module
Add this module to your Puppetfile:
mod 'saz-locales', '4.0.2'
Learn more about managing modules with a PuppetfileDocumentation
saz/locales — version 4.0.2 May 18th 2024
locales module for Puppet
Manage locales via Puppet
Supported Puppet versions
- Puppet >= 4
- Last version supporting Puppet 3: v2.4.0
Usage
By default, en and de locales will be generated.
class { 'locales': }
Configure a bunch of locales.
class { 'locales':
locales => ['en_US.UTF-8 UTF-8', 'fr_CH.UTF-8 UTF-8'],
}
Advanced usage allows you to select which locales will be configured as well as the default one.
class { 'locales':
default_locale => 'en_US.UTF-8',
locales => ['en_US.UTF-8 UTF-8', 'fr_CH.UTF-8 UTF-8'],
}
You can also set specific locale environment variables. See the locale man-page for available LC_* environment variables and their descriptions:
class { 'locales':
default_locale => 'en_US.UTF-8',
locales => ['en_US.UTF-8 UTF-8', 'fr_CH.UTF-8 UTF-8', 'en_DK.UTF-8 UTF-8', 'de_DE.UTF-8 UTF-8' ],
lc_time => 'en_DK.UTF-8',
lc_paper => 'de_DE.UTF-8',
}
Other class parameters
- locales: Name of locales to generate, default: ['en_US.UTF-8 UTF-8', 'de_DE.UTF-8 UTF-8']
- ensure: present or absent, default: present
- default_locale: string, default: 'C'. Set the default locale.
- lc_ctype: string, default: undef. Character classification and case conversion.
- lc_collate: string, default: undef. Collation order.
- lc_time: string, default: undef. Date and time formats.
- ...
- autoupgrade: true or false, default: false. Auto-upgrade package, if there is a newer version.
- package: string, default: OS specific. Set package name, if platform is not supported.
- config_file: string, default: OS specific. Set config_file, if platform is not supported.
- locale_gen_command: string, default: OS specific. Set locale_gen_command, if platform is not supported.
- Suse specific:
- root_uses_lang: if set to 'ctype', root will be stay POSIX, set to 'yes' to change root to the global language as well. Defaults to 'ctype'.
- installed_languages: blank for english, otherwise space seperated list. Used by Yast2 only.
- auto_detect_utf8: Workaround for missing forward of LANG and LC variables of e.g. ssh login connections. Defaults to 'no'.
- input_method: A default input method to be used in X11. For more details see the comments at the top of /etc/X11/xim on a Suse system.
Changelog
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.
[4.0.2]
Added
- add initial tests (#82)
Fixed
- fix default_file on Debian Bookworm (#82)
[4.0.1]
Fixed
- fix $default_file definition on Ubuntu > 24.04 and Debian < 13 (#80)
[4.0.0]
Added
- Add support for Pop!_OS (#75)
- Add support for Debian >12 and Ubuntu >=24.04 (#77, #78)
Changed
- BREAKING CHANGE: Drop Puppet 6 support (#76)
[3.2.0]
Fixed
- Add support for Linuxmint with Puppet 7 (#65)
Added
- Add Puppet 8 support (#72)
- Add LICENSE file (#73)
- Add support for Sangoma (#67)
[3.1.1]
Fixed
- Fix warning on Gentoo systems (#64)
[3.1.0]
Added
- Support Rocky linux (#60)
[3.0.0]
Added
- Support AlmaLinux (#58)
- Support Puppet 7 (#56)
- Support Raspbian (#55)
- Added types to parameters
- Added
manage_package
parameter (#51) - Added CHANGELOG.md (only for new releases), fixes #43
Changed
- BREAKING CHANGE: Testing for Puppet < 6 has been dropped
- Switched from Travis to Github Actions
- Dependencies updated to support the newest releases
- Fixed gentoo config_file path (#50)
- Some linting changes
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.