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

orientdb (4) Versions 0.5.0

Installs/Configures OrientDB

Policyfile
Berkshelf
Knife
cookbook 'orientdb', '~> 0.5.0', :supermarket
cookbook 'orientdb', '~> 0.5.0'
knife supermarket install orientdb
knife supermarket download orientdb
README
Dependencies
Quality 33%

Build Status

OrientDB Cookbook

This cookbook installs OrientDB

Requirements

It has been tested on Ubuntu 12.04, but should work on any platform where Java 1.6 works.

The java and apt cookbooks are needed, as usual may be handled with Berkshelf.

General Attributes:

Attribute Description Default value
node['orientdb']['user']['id'] User name orientdb
node['orientdb']['version'] Database version 2.0.3
node['orientdb']['flavour'] Flavour to be installed, now only community community
node['orientdb']['base_tarball_url'] Partial location of the tarball url, flavour, version and extension removed http://www.orientechnologies.com/download.php?email=unknown@unknown.com&os=linux&file=orientdb
node['orientdb']['installation_directory'] Absolute install dir, dependent on the base install dir /opt/orientdb
node['orientdb']['default_init_script'] Full path to tarball's init script /opt/orientdb/bin/orientdb.sh
node['orientdb']['init_script'] Full path to actual init script /etc/init.d/orientdb
node['orientdb']['db_user'] Admin DB user admin
node['orientdb']['db_password'] Admin DB password admin

Distributed Attributes:

Attribute Description Default value
node['orientdb']['hazelcast']['nodeName'] Node Name {node.name}
node['orientdb']['hazelcast']['enabled'] Enable Hazelcast plugin true
node['orientdb']['hazelcast']['group']['name'] Hazelcast group name orientdb
node['orientdb']['hazelcast']['group']['password'] Hazelcast group password orientdb
node['orientdb']['hazelcast']['network']['join']['mode'] Hazelcast mode, one of multicast, tcp-ip or aws multicast
node['orientdb']['hazelcast']['network']['join']['multicast']['group'] Hazelcast multicast host orientdb
node['orientdb']['hazelcast']['network']['join']['multicast']['port'] Hazelcast multicast port orientdb
node['orientdb']['node_search_criteria'] Chef Search criteria for locating peers. Match on hazelcast group name & password (from above)
node['orientdb']['hazelcast']['network']['join']['tcp-ip']['members'] Array of hostname:port of peer hazelcast members to populate hazelcast.xml file. hostname:port list from node_search_criteria (above)
node['orientdb']['hazelcast']['network']['join']['aws']['access-key'] EC2 access key my-access-key
node['orientdb']['hazelcast']['network']['join']['aws']['secret-key'] EC2 secret key my-secret-key
node['orientdb']['hazelcast']['network']['join']['aws']['region'] Optional, EC2 region us-west-1
node['orientdb']['hazelcast']['network']['join']['aws']['host-header'] Optional, EC2 host header. If set region shouldn't be set as it will override this property ec2.amazonaws.com
node['orientdb']['hazelcast']['network']['join']['aws']['security-group-name'] EC2 security group hazelcast-sg
node['orientdb']['hazelcast']['network']['join']['aws']['tag-key'] EC2 tag key type
node['orientdb']['hazelcast']['network']['join']['aws']['tag-value'] EC2 tag value hz-nodes

|node['orientdb']['distributed']['clusters']['servers']|Array of hostnames to populate default-distributed-db-config.json file.|hostname list from node_search_criteria (above)|

Running the tests

For the unit tests just execute the default rake task:

$ bundle install
$ bundle exec rake

Run the integration tests through test kitchen (Vagrant and VirtualBox are needed for this):

$ bundle exec kitchen test

Vagrant usage

For testing the cookbook with Vagrant 1.2+ you just have to execute bootstrap.sh:

$ bootstrap.sh

It installs the required Vagrant plugins and launchs the machine. After the process you have a orientdb instance running in orientdb.local host, ip 33.33.33.33 (you may need to provide root privileges to allow vagrant-hostmanager do its duty).

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

MIT License

Authors: Federico Gimenez Nieto fgimenez@coit.es

Dependent cookbooks

java >= 0.0.0
apt >= 0.0.0
tar >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.5.0 failed this metric

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

Contributing File Metric
            

0.5.0 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.5.0 passed this metric

No Binaries Metric
            

0.5.0 passed this metric

Testing File Metric
            

0.5.0 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.5.0 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