Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


locale (6) Versions 1.1.0

Installs/Configures locale

cookbook 'locale', '= 1.1.0'
cookbook 'locale', '= 1.1.0', :supermarket
knife cookbook site install locale
knife cookbook site download locale
Quality 100%


Sets the default system locale for this system. You can see which locales are available by running locale -a.

On Debian based systems, this recipe sets the locale by running update-locale and on Fedora, it uses localectl.

On RHEL based systems, the recipe operates on the /etc/sysconfig/i18n file directly because there is no standard command line tool to change the system locale settings.


Tested on Ubuntu, CentOS, Fedora


  • node['locale']['lang'] -- the value for "LANG": defaults to "en_US.utf8"
  • node['locale']['lc_all'] -- the value for "LC_ALL": defaults to "en_US.utf8"

Note that you cannot set "LC_ALL" on Fedora. It is a documented limitation; see "man 5 locale.conf". So this recipe simply ignores LC_ALL for Fedora.


Include the default recipe in your run list.

Collaborator Number Metric

1.1.0 passed this metric

Foodcritic Metric

1.1.0 passed this metric