cookbook 'elassandra', '~> 0.2.0'
elassandra (2) Versions 0.2.0 Follow0
Installs elassandra
cookbook 'elassandra', '~> 0.2.0', :supermarket
knife supermarket install elassandra
knife supermarket download elassandra
Description
Installs Elassandra service.
Requirements
Cookbook:
- java
- poise-python
Platform:
- Ubuntu 16.04
Attributes
default
Attribute | Default | Description |
---|---|---|
node['elassandra']['install_type'] |
'tar' |
The type of install: only tar works for now. |
node['elassandra']['release_version'] |
'2.4.5.3' |
The version to install. |
node['elassandra']['install_prefix'] |
'/opt/elassandra' |
The parent directory path for elassandra installation |
node['elassandra']['tar']['download_url'] |
'https://github.com/strapdata/elassandra/releases/download/v#{node['elassandra']['release_version']}/elassandra-#{node['elassandra']['release_version']}.tar.gz' |
The download url for tar ball |
node['elassandra']['tar']['checksum'] |
'34b8599a9806870b3fbe7e638fb38233dd1df459b9601efa724b9b2c4023a4b3' |
The SHA256 checksum of Elassandra tar archive |
node['elassandra']['pid'] |
'/var/run/cassandra/cassandra.pid' |
The pid file location |
node['elassandra']['user'] |
'cassandra' |
Elassandra service user |
node['elassandra']['group'] |
'cassandra' |
Elassandra service group |
node['cassandra']['cqlsh']['enabled'] |
true |
Whether to enable cqlsh |
Recipes
default
The default recipe will:
- Install elassandra
- Define elassandra service
Note
This default recipe doesn't start the elassandra service.
Usage
Simply include elassandra::default
in your wrapper recipe and configure conf/cassandra.yaml
, then start the service.
Wrapper recipe example
include_recipe 'elassandra::default' installation_path = "#{node['elassandra']['install_prefix']}/elassandra-#{node['elassandra']['release_version']}" template "#{installation_path}"/conf/cassandra.yaml do source "cassandra.yaml.erb" mode 0644 variables( :cluster_name => 'cassandra-cluster', :datacenter => 'datacenter1' ) notifies :start, 'service[elassandra]', :delayed end
License and Author
Author:: Aoi Kadoya
Copyright:: 2017, Aoi Kadoya
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
java >= 0.0.0 |
poise-python >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.0 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.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.2.0 failed this metric
FC069: Ensure standardized license defined in metadata: elassandra/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.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.2.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
0.2.0 failed this metric
0.2.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.2.0 failed this metric
FC069: Ensure standardized license defined in metadata: elassandra/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.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.2.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
0.2.0 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.0 passed this metric
Testing File Metric
0.2.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.2.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
0.2.0 failed this metric
0.2.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