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


heartbeat3 (3) Versions 0.4.2

Installs and configures heartbeat

cookbook 'heartbeat3', '= 0.4.2'
cookbook 'heartbeat3', '= 0.4.2', :supermarket
knife supermarket install heartbeat3
knife supermarket download heartbeat3
Quality -%


Installs and configures heartbeat.



Tested on 0.10.8 but newer and older version should work just fine.


The following platforms have been tested with this cookbook, meaning that the recipes run on these platforms without error:

  • ubuntu
  • debian


There are no external cookbook dependencies.


Just place the heartbeat3 directory in your chef cookbook directory and upload it to your Chef server.


Simply add recipe[heartbeat] to the run list of the servers that will integrate the heartbeat cluster. You can edit the file file/default/authkeys in order to add more security to your heartbeat cluster.

This cookbook doesn't have templates, all configuration files are generated dinamically depending of the keys and their values of the attributes hashes.

Configuration example:

node['heartbeat']['ha_cf']['logfacility'] = "local0"
node['heartbeat']['ha_cf']['auto_failback'] = "off"
node['heartbeat']['ha_cf']['ucast'] = "eth0"
node['heartbeat"]['ha_cf']['node'] = [ "node1", "node2" ]

node["heartbeat"]["haresources"] = [
    "node" => "node1",
    "resources" => [
      " httpd",
      " Filesystem::/dev/sda1::/data1::ext2"

Will generate the following /etc/ha.d/ file:

logfacility local0
auto_failback off
ucast eth0
node node1
node node2

And the following /etc/ha.d/haresources file: node 1 \ IPaddr:: \ httpd \ Filesystem::/dev/sda1::/data1::ext2



Installs and configures Heartbeat according the settings of the node attributes. Also it disables de services set in the node['heartbeat']['services'] attribute.


This recipe will sanitize the services that are set in the node['heartbeat']['services'] attribute in order to Chef doesn't start them in the inactive node.



Hash that contains the parameters of the /etc/ha.d/ file. If the elements are arrays, they will be added with the same parameter but with different values.


It could be false or an array that contains the services that will be managed by heartbeat.


It could be false or it could be an array of hashes with the resources definitions. If it is false, the /etc/ha.d/haresources will not be generated.

Resources and Providers

This cookbook provide some service providers that override some actions in order to them couln't be started by Chef.


There are none defined.


Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make.

License and Author

Author:: Claudio Cesar Sanchez Tejeda

Copyright:: 2012, Claudio Cesar Sanchez Tejeda

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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found