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


phantomjs2 (2) Versions 1.0.0

Installs/Configures phantomjs

cookbook 'phantomjs2', '= 1.0.0', :supermarket
cookbook 'phantomjs2', '= 1.0.0'
knife supermarket install phantomjs2
knife supermarket download phantomjs2
Quality 50%

PhantomJS2 Cookbook

Cookbook Version

Installs the phantomjs cookbook and necessary packages.
This is a fork from with support for package installs removed,
but adds a resource that will allow you to install as many versions of phantomjs as your heart desires.


  • Chef 12+


  • CentOS, RedHat, Fedora
  • Debian, Ubuntu



Add the cookbook to your run_list in a node or role:

"run_list": [

or include it in a recipe:

# other_cookbook/metadata.rb
# ...
depends 'phantomjs2'
# other_cookbook/recipes/default.rb
# ...
include_recipe 'phantomjs2::default'


  • node['phantomjs2']['path'] - Location for the download. Default /usr/local/src.
  • node['phantomjs2']['version'] - The version to install. Default 1.9.8.
  • node['phantomjs2']['checksum'] - The checksum of the download. Default nil.
  • node['phantomjs2']['base_url'] - The base URL to download from. Default
  • node['phantomjs2']['packages'] - The supporting packages. Default varies based on platform.



  • Install - Download and install phantomjs


  • path - Location for the download. Defaults to the name of the resource block.
  • version - The version to install. Default node['phantomjs2']['version'].
  • checksum - The checksum of the download. Defalt node['phantomjs2']['checksum'].
  • packages - The supporting packages. Default node['phantomjs2']['packages'].
  • base_url - The base URL to download from. Default node['phantomjs2']['base_url'].
  • basename - The name of the file to download (this is automatically calculated from the phantomjs version and kernel type). Default phantomjs-#{version}-linux-#{node['kernel']['machine']}.
  • link - Link executable to path. Default true.
  • user - The user name. Default root.
  • group - The group name. Default root.

ChefSpec Matchers

This cookbook includes custom ChefSpec matchers you can use to test
your own cookbooks.

Example Matcher Usage

expect(chef_run).to install_phantomjs2('/src').with(
  version: '1.9.8'

Cookbook Matchers

  • install_phantomjs2(resource_name)

Getting Help


Please refer to CONTRIBUTING.


MIT - see the accompanying LICENSE file for details.



  • Fork of Seth Vargo's phantomjs with resource added and support for package installs removed

Collaborator Number Metric

1.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric

1.0.0 passed this metric