https://github.com/robertlemke/cookbook-locales
https://github.com/robertlemke/cookbook-locales
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertlemke/cookbook-locales
- Owner: robertlemke
- Created: 2013-03-12T09:42:35.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-01-28T14:13:19.000Z (over 12 years ago)
- Last Synced: 2025-12-31T13:15:06.913Z (6 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Chef Cookbook: Locales
======================
This simple cookbook allows for setting and generating locales for an Ubunut or
Debian machine.
Requirements
------------
The recipe of this cookbook has only been tested with Ubuntu. It relies on the
locale-gen command and the fact that supported locales are listed in
/var/lib/locales/supported.d/
Attributes
----------
By setting attributes for your node you can define which locales should be generated.
#### robertlemke-locales::default
Key
Type
Description
Default
node['robertlemke-locales']['locales']
Array
A list of locales
default['robertlemke-locales']['locales'] = [
'en_US UTF-8', 'en_US.UTF-8 UTF-8', 'en_US ISO-8859-1',
'de_DE UTF-8', 'de_DE.UTF-8 UTF-8', 'de_DE ISO-8859-1'
]
Usage
-----
#### robertlemke-locales::default
Just define the attributes and then include `robertlemke-locales` in your node's
`run_list`:
```json
{
"name":"my_node",
"run_list": [
"recipe[robertlemke-locales]"
]
}
```
License and Author
------------------
Copyright (c) 2013 Robert Lemke
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.