16.94. cdist-type__localedef(7)

16.94.1. NAME

cdist-type__localedef - Define and remove system locales

16.94.2. DESCRIPTION

This cdist type allows you to define locales on the system using localedef(1) or remove them. On systems that don't support definition of new locales, the type will raise an error.

NB: This type respects the glibc locale.alias file, i.e. it defines alias locales or deletes aliases of a locale when it is removed. It is not possible, however, to use alias names to define locales or only remove certain aliases of a locale.

16.94.3. OPTIONAL PARAMETERS

state

present or absent. Defaults to present.

16.94.4. EXAMPLES

# Add locale de_CH.UTF-8
__localedef de_CH.UTF-8

# Same as above, but more explicit
__localedef de_CH.UTF-8 --state present

# Remove colourful British English
__localedef en_GB.UTF-8 --state absent

16.94.5. SEE ALSO

locale(1), localedef(1), cdist-type__locale_system(7)

16.94.6. AUTHORS

16.94.7. COPYING

Copyright (C) 2013-2019 Nico Schottelius, 2020 Dennis Camera. Free use of this software is granted under the terms of the GNU General Public License version 3 or later (GPLv3+).