Deprecation: Deprecation of lc_all from locale resource (CHEF-27)
LC_ALL variable is NOT recommended. As a system-wide
LANG should provide the desired behavior.
intended to be used for temporarily troubleshooting issues rather than
an everyday system setting. Changing
LC_ALL can break Chef’s parsing
of command output in unexpected ways. Use one of the more specific
properties as needed. This deprecation warning was added in Chef Infra
Client 15.0. Support for property
lc_all will be removed for Chef
Infra Client 16.0.
The Cookstyle cop ChefDeprecations/LocaleDeprecatedLcAllProperty has been introduced to detect and autocorrect this deprecation.
LC_ALL in current shell as:
To check the
locale value, run:
You can also use file Resource and add this variable in any other file of your choice and then can source that file to reflect changes.
file "<path_to_file>" do content "LC_ALL=<locale_name>" end
path_to_file could be any one of:
Setting LC_ variables varies by platform, but these are the common locations to configure LC_ variables.