cookbook 'ndb', '~> 0.2.1'
ndb (3) Versions 0.2.1 Follow1
Installs/Configures NDB (MySQL Cluster)
cookbook 'ndb', '~> 0.2.1', :supermarket
knife supermarket install ndb
knife supermarket download ndb
Description
Installs and configures a MySQL Cluster, including the management server(s), data nodes, and MySQL Server(s).
Requirements
Chef 0.11+.
Platform
- Ubuntu, centos
Tested on:
* Ubuntu 12.04-14.04
* centos 7.0+
Usage
install gems needed to test chef recipes
bundle installTest recipe syntax and code-style
bundle exec foodcritic .run kitchen to test recipes
./kitchen.sh
Chef-solo usage
On a node that provides both a Management Server and a MySQL Server, use both the mgmd and mysqld recipes:
{ "run_list": ["recipe[ndb::install]", "recipe[ndb::mgmd]", "recipe[ndb::mysqld]" }
This will install and start both a ndb_mgmd and a mysqld daemon on both nodes.
On a node that will provide a data node, run:
{ "run_list": ["recipe[ndb::install]", "recipe[ndb::ndbd]" }
This will install a data node on the host, that is, an ndbd process.
You can override attributes in your node or role.
For example, on an Ubuntu system:
{
"mysql": {
"password": "secret"
}
}
Karamel usage
This cookbook is karamelized (www.karamel.io).
You can launch a MySQL Cluster using the following yml file. It will create 5 VMs on EC2, and install ndb datanodes on 4 VMs, and a management server, a MySQL Server, and a Memcached server on 1 VM.
name: MySqlCluster
cookbooks:
ndb:
github: "hopshadoop/ndb-chef"
version: "v0.1"
groups:
datanodes:
size: 4
recipes:
- ndb::ndbd
server:
size: 1
recipes:
- ndb::mysqld
- ndb::memcached
- ndb::mgmd
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Collaborator Number Metric
0.2.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.1 failed this metric
FC009: Resource attribute not recognised: ndb/recipes/install.rb:7
FC009: Resource attribute not recognised: ndb/recipes/ndbd.rb:175
FC034: Unused template variables: ndb/templates/default/config.ini.erb:1
FC064: Ensure issues_url is set in metadata: ndb/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ndb/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ndb/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: ndb/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: ndb/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ixgbevf.rb:26
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ixgbevf.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_basic.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_basic.rb:93
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:5
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:64
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:40
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/waiter.rb:10
FC109: Use platform-specific package resources instead of provider property: ndb/recipes/mysqld.rb:41
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
ndb/files/default/libaio1_0.3.109-2ubuntu1_amd64.deb
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.1 failed this metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.1 failed this metric
FC009: Resource attribute not recognised: ndb/recipes/install.rb:7
FC009: Resource attribute not recognised: ndb/recipes/ndbd.rb:175
FC034: Unused template variables: ndb/templates/default/config.ini.erb:1
FC064: Ensure issues_url is set in metadata: ndb/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ndb/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ndb/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: ndb/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: ndb/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ixgbevf.rb:26
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ixgbevf.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_basic.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_basic.rb:93
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:5
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:64
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:40
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/waiter.rb:10
FC109: Use platform-specific package resources instead of provider property: ndb/recipes/mysqld.rb:41
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
ndb/files/default/libaio1_0.3.109-2ubuntu1_amd64.deb
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.1 failed this metric
FC009: Resource attribute not recognised: ndb/recipes/ndbd.rb:175
FC034: Unused template variables: ndb/templates/default/config.ini.erb:1
FC064: Ensure issues_url is set in metadata: ndb/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ndb/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ndb/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: ndb/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: ndb/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ixgbevf.rb:26
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ixgbevf.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mgmd.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_basic.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_basic.rb:93
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:5
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:36
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysql_ndb.rb:64
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:18
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/mysqld.rb:28
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:8
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/ndbd.rb:40
FC085: Resource using new_resource.updated_by_last_action to converge resource: ndb/providers/waiter.rb:10
FC109: Use platform-specific package resources instead of provider property: ndb/recipes/mysqld.rb:41
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
ndb/files/default/libaio1_0.3.109-2ubuntu1_amd64.deb
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.1 failed this metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number