cdist-type__locale_system - Man Page

Set system-wide locale


This cdist type allows you to modify system-wide locale. The name of the locale category is given as the object id (usually you are probably interested in using LANG).

Optional Parameters


present or absent, defaults to present. If present, sets the locale category to the given value. If absent, removes the locale category from the system file.


The value for the locale category. Defaults to en_US.UTF-8.


# Set LANG to en_US.UTF-8
__locale_system LANG

# Same as above, but more explicit
__locale_system LANG --value en_US.UTF-8

# Set category LC_MESSAGES to de_CH.UTF-8
__locale_system LC_MESSAGES --value de_CH.UTF-8

# Remove setting for LC_ALL
__locale_system LC_ALL --state absent

See Also

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


Steven Armstrong <>
Carlos Ortigoza <>
Nico Schottelius <>


Copyright (C) 2016 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License version 3 or later (GPLv3+).

Referenced By


May 01, 2020 6.5.5 cdist