cookbook 'codenamephp_keyboard_layout', '~> 1.0.0'
The codenamephp_keyboard_layout cookbook has been deprecated
Author provided reason for deprecation:
The codenamephp_keyboard_layout cookbook has been deprecated and is no longer being maintained by its authors. Use of the codenamephp_keyboard_layout cookbook is no longer recommended.
codenamephp_keyboard_layout (1) Versions 1.0.0 Follow0
Cookbook to install apache2
cookbook 'codenamephp_keyboard_layout', '~> 1.0.0', :supermarket
knife supermarket install codenamephp_keyboard_layout
knife supermarket download codenamephp_keyboard_layout
Chef Cookbook
Provides a resource to set the keyboard layout configuration in /etc/default/keyboard and restart several services on changes.
Usage
Use the resource in your wrapper cookbook. That's it
Resources
Keyboard Layout
The codenamephp_keyboard_layout_manage
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_keyboard_layout
-
template_source
: The name of the template file, defaults to'keyboard_layout.erb'
-
model
: The model that is used for the keyboard, defaults to 'pc105' -
layout
: The layout to be used, e.g. for different languages, defaults 'de' -
variant
: The variant of the layout that will be used, defaults to '' -
options
: Additional options to be set, defaults to '' -
backspace
: How the OS should detect the backspace key, defaults to 'guess' -
extra_variables
: Additional variables for the template that get merged into the variables passed to the template resource, defaults to {}
Examples
# Minimal properties codenamephp_keyboard_layout_manage 'Update keyboard layout' # With custom template codenamephp_keyboard_layout_manage 'Update keyboard layout' do cookbook 'my_cookbook' template_source 'my_template.erb' extra_variables( { new_variable: 'new value', layout: 'other layout' # you cando this but ... don't? } ) end
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Collaborator Number Metric
1.0.0 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.0 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
Cookstyle Metric
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 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.0 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.0 failed this metric
1.0.0 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
Cookstyle Metric
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 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.0 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.0 passed this metric
1.0.0 passed this metric
Testing File Metric
1.0.0 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.0 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.0 failed this metric
1.0.0 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