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

Select Status

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.

RSS

codenamephp_system (3) Versions 1.0.2

Cookbook to install apache2

Policyfile
Berkshelf
Knife
cookbook 'codenamephp_system', '~> 1.0.2', :supermarket
cookbook 'codenamephp_system', '~> 1.0.2'
knife supermarket install codenamephp_system
knife supermarket download codenamephp_system
README
Dependencies
Quality 17%

Chef Cookbook System

Build Status

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.2 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.2 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.2 failed this metric

Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): codenamephp_system/resources/keyboard_layout.rb: 1

Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations

No Binaries Metric
            

1.0.2 passed this metric

Testing File Metric
            

1.0.2 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.2 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