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

cpu (4) Versions 2.0.0

Manage CPU Governor on linux

Berkshelf/Librarian
Policyfile
Knife
cookbook 'cpu', '~> 2.0.0'
cookbook 'cpu', '~> 2.0.0', :supermarket
knife cookbook site install cpu
knife cookbook site download cpu
README
Dependencies
Changelog
Quality

cpu Cookbook

Cookbook Version Build Status

Manage CPU Governor on linux

Requirements

Platforms

  • Ubuntu
  • Debian

Chef

  • Chef 12.5+

Cookbooks

No dependencies defined

Attributes

  • node['cpu']['governor'] - Defaults to "ondemand".

Recipes

  • cpu::affinity - deprecated
  • cpu::default - deprecated
  • cpu::governor - Sets the CPU governer based on the attribute above

Resources

cpu_affinity

Actions

  • set: Default action.

Properties

  • pid:
  • cpu:

Examples

cpu_affinity 1234 do
  cpu 0
end

Set affinity to processor 0,1,2 for process nginx

cpu_affinity 'set affinity for nginx' do
  pid '/var/run/nginx.pid'
  cpu '0-2'
end

cpu_nice

Actions

  • set: Default action.

Properties

  • pid:
  • priority:

Examples

cpu_nice 1234 do
  priority 12
end
cpu_nice 'set affinity for nginx' do
  pid '/var/run/nginx.pid'
  priority 19
end

License and Maintainer

Maintainer:: Guilhem Lettron (guilhem.lettron@youscribe.com)

License:: Apache v2.0

CPU Changelog

This file is used to list changes made in each version of the cpu cookbook.

v2.0.0 (2017-04-07)

  • This cookbook now requires Chef 12.5 or later
  • Fixed failures on RHEL in the affinity recipe
  • Fixed helper methods that were leaking into the global Ruby namespace
  • Added support for RHEL derivatives to the metadata
  • Updated the affinity resource to install the necessary package. There is no longer a need to include the recipe first now.
  • Added deprecation warnings to the legacy recipes that are no longer required
  • Converted the LWRPs to custom resources. This adds why-run support for the resources
  • Added full integration testing on RHEL/Ubuntu in Travis CI
  • Simplified testing with Delivery local
  • Added a test recipe that tests the governor recipe and also the resources. Previously only the empty default recipe was being tested
  • Removed test gems from the Gemfile as testing should be done with ChefDK instead
  • Added a basic Chefspec test for the governor recipe
  • Updated the governor recipe to warn instead of failing on RHEL 7 and Fedora

v1.0.0 (2016-11-02)

  • Moved maintenance to the redguide group
  • Added use_inline_resources to the providers to properly notify on updates
  • Removed Chef 10 compatibility
  • Resolved all cookstyle warnings
  • Added new metadata for Supermarket
  • Added testing in Travis
  • Added local testing with rake and test kitchen
  • Added the Apache 2.0 license file
  • Add a Berksfile
  • Refactored the Readme
  • Added a chefignore file

Collaborator Number Metric
            

2.0.0 passed this metric

Contributing File Metric
            

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

2.0.0 passed this metric

License Metric
            

2.0.0 passed this metric

No Binaries Metric
            

2.0.0 passed this metric

Publish Metric
            

2.0.0 passed this metric

Supported Platforms Metric
            

2.0.0 passed this metric

Testing File Metric
            

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

2.0.0 passed this metric