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 bluepill cookbook has been deprecated

Author provided reason for deprecation:

The bluepill cookbook has been deprecated and is no longer being maintained by its authors. Use of the bluepill cookbook is no longer recommended.


bluepill (26) Versions 1.1.2

Installs bluepill gem and configures to manage services, includes bluepill_service LWRP

cookbook 'bluepill', '= 1.1.2', :supermarket
cookbook 'bluepill', '= 1.1.2'
knife supermarket install bluepill
knife supermarket download bluepill
Quality -%


Installs bluepill RubyGem and configures it to manage services. Also includes a LWRP.


Bluepill is a pure Ruby service management tool/library, so this cookbook should work on any system. The attributes do set up paths based on FHS locations, see below.


Default locations for bluepill are in "FHS compliant" locations.

  • node["bluepill"]["bin"] - Path to bluepill program, default is 'bluepill' in the RubyGems binary directory.
  • node["bluepill"]["logfile"] - Location of the bluepill log file, default "/var/log/bluepill.log".
  • node["bluepill"]["conf_dir"] - Location of service config files (pills), default "/etc/bluepill".
  • node["bluepill"]["pid_dir"] - Location of pidfiles, default "/var/run/bluepill"
  • node["bluepill"]["state_dir"] - Location of state directory, default "/var/lib/bluepill"
  • node["bluepill"]["init_dir"] - Location of init script directory, default selected by platform.
  • node["bluepill"]["version"] - Version of bluepill to install, default is latest.


This cookbook contains an LWRP, bluepill_service. This can be used with the normal Chef service resource, by using the provider parameter, or by specifying the bluepill_service shortcut. These two resources are equivalent.

service "my_app" do
  provider bluepill_service
  action [:enable, :load, :start]

bluepill_service "my_app" do
  action [:enable, :load, :start]

The load action should probably always be specified, to ensure that if bluepill isn't running already it gets started. The

The recipe using the service must contain a template resource for the pill and it must be named my_app.pill.erb, where my_app is the service name passed to the bluepill service resource.


Be sure to include the bluepill recipe in the run list to ensure that the gem and bluepill-related directories are created. This will also make the cookbook available on the system and other cookbooks won't need to explicitly depend on it in the metadata.

If the default directory locations in the attributes/default.rb aren't what you want, change them by setting them either in the attributes file itself, or create attributes in a role applied to any systems that will use bluepill.

Example pill template resource and .erb file:

template "/etc/bluepill/my_app" do
  source "my_app.pill.erb"

Bluepill.application("my_app") do |app|
  app.process("my_app") do |process|
    process.pid_file = "/var/run/"
    process.start_command = "/usr/bin/my_app"

See bluepill's documentation for more information on creating pill templates.

License and Author

Author:: Joshua Timberman (

Copyright 2010, Opscode, Inc.

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,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

app Applicable Versions
chef Applicable Versions
chef-server Applicable Versions
chef_nginx Applicable Versions
djbdns Applicable Versions
elasticsearch Applicable Versions
geminabox Applicable Versions
gitpaste Applicable Versions
grinder Applicable Versions
nexus Applicable Versions
nginx Applicable Versions
nginx_simplecgi Applicable Versions
prometheus Applicable Versions
red_unicorn Applicable Versions
s3fs-fuse Applicable Versions
spigot Applicable Versions
teamcity_server Applicable Versions
youtrack Applicable Versions
ziggrid Applicable Versions

No quality metric results found