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

RSS

codenamephp_keyboard_layout (1) Versions 1.0.0

Cookbook to install apache2

Berkshelf
Policyfile
Knife
cookbook 'codenamephp_keyboard_layout', '~> 1.0.0'
cookbook 'codenamephp_keyboard_layout', '~> 1.0.0', :supermarket
knife supermarket install codenamephp_keyboard_layout
knife supermarket download codenamephp_keyboard_layout
README
Dependencies
Quality 50%

Chef Cookbook

CI

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

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

Foodcritic Metric
            

1.0.0 passed this metric

No Binaries Metric
            

1.0.0 passed this metric

Publish Metric
            

1.0.0 passed this metric

Supported Platforms 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