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


jn_sysctl (6) Versions 2.0.0

Configure/Set sysctl paramaters

cookbook 'jn_sysctl', '= 2.0.0'
cookbook 'jn_sysctl', '= 2.0.0', :supermarket
knife supermarket install jn_sysctl
knife supermarket download jn_sysctl
Quality -%


Manage sysctl sysctl provider. Default recipe reads key value pairs from node attributes and ensures the system state.

NOTE: If you are getting this from the community site I've renamed it jn_sysctl, you will have to rename the cookbook to sysctl

WARNING: The default behavior on non-debian flavors is to write out /etc/sysctl.conf, which if you don't have settings in chef means you can kill your existing config. the sysctl_file atribute can control where this file goes in a role/override if you wish.


  • sysctl: Hash of k/v pairs with sysctl settings.
  • sysctl_file: The location we write out the configuration defaults to /etc/sysctl.conf on anything not debian flavor defaults to /etc/sysctl.d/99-chef.conf on debian

Sysctl LWRP


  • name: The key name. Defaults to the resource name i.e. sysctl "some.key"
  • value: what to set this key to
  • save: save the setting back to the node data (default: false)


  • :set Make sure the running state is set (default)
  • :write Write the config file (default)

Known Bugs

  • only intended to be used on Linux

Example Usage


Ensure running state, and write this key to sysctl.conf

sysctl "kernel.sysrq" do
   value 1

Check out example/recipes/example.rb For more recipe examples.


In a role attribute or override:

  "sysctl": {
    "net.ipv4.tcp_window_scaling": 0

Check out example/attributes/example.rb For more attribute examples.

Author and License

Author Jesse Nelson

Copyright 2011-2013, Jesse Nelson

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

accumulator >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found