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


rippled (7) Versions 0.2.0

Compiles, installs and configures rippled, a ripple network daemon

cookbook 'rippled', '= 0.2.0', :supermarket
cookbook 'rippled', '= 0.2.0'
knife supermarket install rippled
knife supermarket download rippled
Quality 0%

rippled Cookbook

This cookbook compiles and installs a Ripple node (version 0.29.0). At the time of writing Ripple Labs does not provide a precompiled package for the most recent release, therefore the only installation method available is via sources.

The cookbook generally follows instructions published at here with the following improvements:
- allow to bind on privileged ports
- use upstart for the daemon


Please refer to rippled example configuration in sources for the full list of settings souces.

All attributes within <code>node["rippled"]["config"]</code> will be converted to the content of rippled.cfg. A key from <code>node["rippled"]["config"][key]</code> becomes a section. A corresponding value might be a string (converts to a single string in the section), an array (each element goes as a string in the section), a map (converts to a list of key=value strings), nil (to suppress default attributes, the section is not created then). It is clear from examples:

An array
node["rippled"]["config"]["server"] = ["port_rpc_admin_local", "port_peer", "port_ws_admin_local"]

becomes a section (mind server -> [server] transformation done by the recipe)


A single value
node["rippled"]["config"]["node_size"] = "medium"

becomes a section


A map
node["rippled"]["config"]["port_peer"] = {
"port" => "51235",
"ip" => "",
"protocol" => "peer"

becomes a section


A nil
node["rippled"]["config"]["port_ws_admin_local"] = nil

removes port_ws_admin_local section

Generally speaking, sections of rippled.cfg contain lines with either values or key-value pairs. The only mix is [server] and putting a key-value there is syntax shugar and thus can be easily avoided. If you still need a mix, you can use the following construction

default["rippled"]["config"]["server"] = ["port_rpc_admin_local", "#port_ws_public", "ssl_key = /etc/ssl/private/server.key", "ssl_cert = /etc/ssl/certs/server.crt"]

The default attributes merely repeat default rippled configuration from souces. For better version tracking a copy of this example used to derive the attributes is saved in this cookbook at materials/rippled-example.cfg

If the following pathes are specified (explicitly or with default values), the reciept will create corresponding folders for under node['rippled']['user'] ownership:
* ["rippled"]["config"]["node_db"]["path"]
* ["rippled"]["config"]["database_path"]
* ["rippled"]["rippled"]["config"]["debug_logfile"]

All other attributes are listed below.

<td>Git repository of rippled sources</td>
<td>Git revision to check out</td>
<td>Run internal tests, <code>true</code> or <code>false</code></td>
Additional command line parameters to the deamon<br>
Do not add <code>--conf</code> or <code>--fg</code> here, neigher add parameters that will cause the deamon to exit (like <code>--help</code>)

<td>Content of rippled.cfg (described above)</td>
<td><i>identical to rippled-example.cfg</i></td>

<td>User to run the daemon</td>
<td>Group to create for the user</td>
<td>Path to pid-file</td>
<td>Where to install the executable</td>
<td>Where to install the config file</td>
<td>List of packages to install, do not edit</td>
<td><i>cookbook implementation specific</i></td>

Supported Platforms

  • Ubuntu 14.04

Known issues

  • You need at least 16G memory to compile rippled. If memory is insufficient, g++ fails with an internal error. See .kitchen.yml <!--
  • Tests use nodejs from from ppa which conflicts with default ubuntu npm. You will not be able to apt-get npm (this will fail with an error) -->

How to update this cookbook to the next rippled version

  • Copy rippled/doc/rippled-example.cfg to materials/rippled.cfg
  • Reflect any changes in ["rippled"]["config"] attributes
  • Bump rippled version in ["rippled"]["git_revision"] attribute and in this README
  • Bump cookbook version


  • rippled::default Builds the rippled from source, configures, installs and runs.

License and Author

Author: Dmitry Grigorenko (
License: Apache License, Version 2.0
  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

apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.2.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9be4dcdd739ad8e551280e85/rippled/recipes/default.rb:113
FC002: Avoid string interpolation where not required: /tmp/cook/9be4dcdd739ad8e551280e85/rippled/templates/default/rippled.cfg.erb:10
FC002: Avoid string interpolation where not required: /tmp/cook/9be4dcdd739ad8e551280e85/rippled/templates/default/rippled.cfg.erb:17
FC019: Access node attributes in a consistent manner: /tmp/cook/9be4dcdd739ad8e551280e85/rippled/recipes/default.rb:113