cookbook 'codenamephp_system', '= 1.0.1'
The codenamephp_system cookbook has been deprecated
Author provided reason for deprecation:
The codenamephp_system cookbook has been deprecated and is no longer being maintained by its authors. Use of the codenamephp_system cookbook is no longer recommended.
codenamephp_system (3) Versions 1.0.1 Follow0
Cookbook to install apache2
cookbook 'codenamephp_system', '= 1.0.1', :supermarket
knife supermarket install codenamephp_system
knife supermarket download codenamephp_system
Chef Cookbook System
Requirements
Supported Platforms
- Debian Stretch
Chef
- Chef 13.0+
Cookbook Depdendencies
Usage
Add the cookbook to your Berksfile:
cookbook 'codenamephp_system'
Add the cookbook to your runlist, e.g. in a role:
{ "name": "default", "chef_type": "role", "json_class": "Chef::Role", "run_list": [ "recipe[codenamephp_system]" ] }
Attributes
Keyboard Layout
-
default['codenamephp']['system']['keyboardLayout']['XKBMODEL']
: The keyboard model, defaults to'pc105'
-
default['codenamephp']['system']['keyboardLayout']['XKBLAYOUT']
: The keyboard layout(s)/language(s), can be a CSV list, defaults to'de'
-
default['codenamephp']['system']['keyboardLayout']['XKBVARIANT']
: The keyboard variant, defaults to''
-
default['codenamephp']['system']['keyboardLayout']['XKBOPTIONS']
: Additional xkboptions, defaults to''
-
default['codenamephp']['system']['keyboardLayout']['BACKSPACE']
: How to find the backspace key, defaults to'guess'
Locale
-
default['codenamephp']['system']['locale']
: The system locale to set, defaults to'de_DE.UTF-8'
Timezone
-
default['codenamephp']['system']['timezone']
: The system timezone to set, defaults to'Europe/Berlin'
Resources
Keyboard Layout
The codenamephp_system_keyboard_layout
sets you default system keyboard layout by replacing /etc/default/keyboard
with a template where the model,
layout and all other XKB settings can be set using attributes. It also sets up monitoring when the template changes during the chef run and informs
all dependent services.
You can also pass your own template and set attributes as you like them.
Actions
-
:update
: Updates the template and restarts services if needed
Properties
-
cookbook
: The name of the cookbook where the template can be found, defaults to'codenamephp_system
-
template_source
: The name of the template file, defaults to'keyboard_layout.erb'
Examples
# Minimal properties codenamephp_system_keyboard_layout 'Update keyboard layout' # With custom template codenamephp_system_keyboard_layout 'Update keyboard layout' do cookbook 'my_cookbook' template_source 'my_template.erb' end
Recipes
Keyboard Layout
The ::keyboard_layout
recipe is just a shortcut that calls the codenamephp_system_keyboard_layout
without properties
Locale
The ::locale
recipe just uses the chef locale
resource with the value from default['codenamephp']['system']['locale']
Timezone
The ::timezone
recipe just uses the chef timezone
resource with the value from default['codenamephp']['system']['timezone']
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.1 failed this metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.1 passed this metric
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.1 passed this metric
1.0.1 passed this metric
Testing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.1 failed this metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number