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

RSS

rabbitmq-cluster (5) Versions 0.1.2

Configures rabbitmq cluster

Policyfile
Berkshelf
Knife
cookbook 'rabbitmq-cluster', '= 0.1.2', :supermarket
cookbook 'rabbitmq-cluster', '= 0.1.2'
knife supermarket install rabbitmq-cluster
knife supermarket download rabbitmq-cluster
README
Dependencies
Changelog
Quality 0%

rabbitmq-cluster Cookbook

This cookbook is wrapper of Opscode rabbitmq cookbook. It configures rabbitmq cluster by executing rabbitmqctl command.

Please take a look at the Vagrant file and roles directory as an example.

Supported Platforms

rabbitmq-cluster cookbook has tested on the Vagrant box in below.

  • ubuntu/trusty64
  • ubuntu/precise64
  • chef/centos-6.5
  • chef/debian-7.7

Attributes

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['rabbitmq']['cluster']</tt></td>
<td>Boolean</td>
<td>['rabbitmq']['cluster'] = true and ['rabbitmq']['erlang_cookie'] is required for configuring rabbitmq cluster</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['rabbitmq']['erlang_cookie']</tt></td>
<td>String</td>
<td>['rabbitmq']['cluster'] = true and ['rabbitmq']['erlang_cookie'] is required for configuring rabbitmq cluster. <br>also, all the cluster should have same erlang_cookie.</td>
<td><tt>AnyAlphaNumericStringWillDo</tt></td>
</tr>
<tr>
<td><tt>['rabbitmq-cluster']['node_type']</tt></td>
<td>String</td>
<td>"master" or "slave"</td>
<td><tt>master</tt></td>
</tr>
<tr>
<td><tt>['rabbitmq-cluster']['master_node_name']</tt></td>
<td>String</td>
<td>Master node name to join in cluster. default value is an example. please modify in your recipe.</td>
<td><tt>rabbit@rabbit1</tt></td>
</tr>
<tr>
<td><tt>['rabbitmq-cluster']['cluster_node_type']</tt></td>
<td>String</td>
<td>"disc" or "ram"</td>
<td><tt>disc</tt></td>
</tr>
</table>

Usage

rabbitmq-cluster::default

Include rabbitmq-cluster in your node's run_list:

{
  "run_list": [
    "recipe[rabbitmq-cluster::default]"
  ]
}

License and Authors

Author:: Sunggun Yu (<YOUR_EMAIL>)

Dependent cookbooks

rabbitmq >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of rabbitmq-cluster

0.1.1

Adding default attributes for rabbitmq cookbook.
['rabbitmq']['cluster'] = true and ['rabbitmq']['erlang_cookie'] is required for configuring rabbitmq cluster. Also, all the cluster should have same erlang_cookie.
- default['rabbitmq']['cluster'] = true
- default['rabbitmq']['erlang_cookie'] = 'AnyAlphaNumericStringWillDo'

Updating tested Vagrant box image list.
- ubuntu/trusty64
- ubuntu/precise64
- chef/centos-6.5
- chef/debian-7.7

Foodcritic Metric
            

0.1.2 failed this metric

FC023: Prefer conditional attributes: /tmp/cook/4d9838b0085aea1bdbd52925/rabbitmq-cluster/recipes/default.rb:20
FC023: Prefer conditional attributes: /tmp/cook/4d9838b0085aea1bdbd52925/rabbitmq-cluster/recipes/default.rb:27