cookbook 'consul-ng', '= 0.1.4'
consul-ng (5) Versions 0.1.4 Follow1
Installs/Configures Hashicorp Consul
cookbook 'consul-ng', '= 0.1.4', :supermarket
knife supermarket install consul-ng
knife supermarket download consul-ng
consul-ng Cookbook
This is a Chef cookbook to manage Consul.
For Production environment, always prefer the most recent release.
Most Recent Release
cookbook 'consul-ng', '~> 0.1.4'
From Git
cookbook 'consul', github: 'vkhatri/chef-consul-ng'
Repository
https://github.com/vkhatri/chef-consul-ng
Supported OS
This cookbook was tested on Amazon & Ubuntu & Centos7 Linux & Windows2012R2 and expected to work on other RHEL platforms.
Recipes
consul::default
- default recipe (use it for run_list)consul::user
- setup consul user/groupconsul::install
- install consulconsul::install_windows
- install consul on windowsconsul::config
- configure consul
Advanced Attributes
default['consul']['version']
(default:0.7.0
): consul versiondefault['consul']['packages']
(default:['unzip']
): package dependenciesdefault['consul']['notify_restart']
(default:true
): whether to restart consul service on configuration file changedefault['consul']['disable_service']
(default:false
): whether to disable and stop consul servicedefault['consul']['package_url']
(default:auto
): download consul package file from hashicorp package repositorydefault['consul']['webui_package_url']
(default:auto
): download consul webui package file from hashicorp package repositorydefault['consul']['setup_user']
(default:true
): setup consul user / groupdefault['consul']['enable_webui']
(default:true
): enable consul webuidefault['consul']['enable_webui']
(default:true
): enable consul webuidefault['consul']['diplomat_gem_version']
(default:nil
): diplomat chef gem versiondefault['consul']['install_diplomat_gem']
(default:true
): install diplomat chef gemdefault['consul']['configure']
(default:true
): configure consuldefault['consul']['install']
(default:true
): install consul
Core Attributes
default['consul']['packages']
(default:['unzip']
): package dependenciesdefault['consul']['conf_dir']
(default:/etc/consul
): consul configuration directorydefault['consul']['conf_file']
(default:/etc/consul/000-consul.json
): consul configuration filedefault['consul']['parent_dir']
(default:/usr/local/consul
): consul parent directorydefault['consul']['pid_dir']
(default:/var/run/consul
): consul service pid directorydefault['consul']['log_dir']
(default:/var/log/consul
): consul log directorydefault['consul']['mode']
(default:0754
): default directory/file resources modedefault['consul']['umask']
(default:0023
): execute resource attributedefault['consul']['user']
(default:consul
): user namedefault['consul']['group']
(default:consul
): group namedefault['consul']['version_purge']
(default:false
): purge older versions undernode['consul']['parent_dir']
Configuration File 001-consul.json Attributes
default['consul']['config']['datacenter']
(default:nil
): consul configuration attribute, need to set this attributedefault['consul']['config']['encrypt']
(default:nil
): consul configuration attribute, need to set this attributedefault['consul']['config']['start_join']
(default:[]
): consul configuration attribute, set this attribute with consul servers ip addressdefault['consul']['config']['bootstrap']
(default:false
): consul configuration attributedefault['consul']['config']['server']
(default:false
): consul configuration attributedefault['consul']['config']['log_level']
(default:INFO
): consul configuration attributedefault['consul']['config']['bind_addr']
(default:node['ipaddress']
): consul configuration attributedefault['consul']['config']['client_addr']
(default:node['ipaddress']
): consul configuration attributedefault['consul']['config']['ports']['server']
(default:8300
): consul portdefault['consul']['config']['ports']['serf_lan']
(default:8301
): consul portdefault['consul']['config']['ports']['serf_wan']
(default:8302
): consul portdefault['consul']['config']['ports']['rpc']
(default:8400
): consul portdefault['consul']['config']['ports']['dns']
(default:8600
): consul portdefault['consul']['config']['ports']['http']
(default:8500
): consul port
For more attribute info, visit below links:
http://www.consul.io/docs/agent/options.html
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests (
rake & rake knife
), ensuring they all pass - Write new resource/attribute description to
README.md
- Write description about changes to PR
- Submit a Pull Request using Github
Copyright & License
Authors:: Virender Khatri and Contributors
<pre>
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.
</pre>
Dependent cookbooks
nssm ~> 1.2.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
consul-ng CHANGELOG
This file is used to list changes made in each version of the consul-ng cookbook.
0.1.4
- Virender Khatri - Update Consul version to 0.7.0
0.1.3
JustGav - Create systemd.debian.erb
JustGav - Fix Travis
JustGav - Added kitchen Ubuntu 16.04
Daan de Goede - Fix for Search is not working with double quotes around the datacenter string
Virender Khatri - Fix travis build
0.1.2
Rene Mul - Fix lint
Rene Mul - Added support for systemd
Nathan Sullivan - fix to allow init script to be installed successfully in kitchen-docker
Nathan Sullivan - bump versions supported to include 0.6.4
Nathan Sullivan - fixed rubocop, spec tests
Virender Khatri - make install and config recipe optional
0.1.1
- Rene Mul - Added Windows installation support
0.1.0
- Virender Khatri - Initial release of consul-ng
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.4 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.1.4 failed this metric
FC066: Ensure chef_version is set in metadata: consul-ng/metadata.rb:1
FC069: Ensure standardized license defined in metadata: consul-ng/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_acl.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_acl.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_check.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_check.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_script.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_script.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_service.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_service.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_watch.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_watch.rb:24
Run with Foodcritic Version 13.1.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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.1.4 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.1.4 failed this metric
0.1.4 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.1.4 failed this metric
FC066: Ensure chef_version is set in metadata: consul-ng/metadata.rb:1
FC069: Ensure standardized license defined in metadata: consul-ng/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_acl.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_acl.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_check.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_check.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_script.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_script.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_service.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_service.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_watch.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_watch.rb:24
Run with Foodcritic Version 13.1.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 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.1.4 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.1.4 failed this metric
FC069: Ensure standardized license defined in metadata: consul-ng/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_acl.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_acl.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_check.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_check.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_script.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_script.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_service.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_service.rb:24
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_watch.rb:20
FC085: Resource using new_resource.updated_by_last_action to converge resource: consul-ng/libraries/provider_watch.rb:24
Run with Foodcritic Version 13.1.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.4 passed this metric
Testing File Metric
0.1.4 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.1.4 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.1.4 failed this metric
0.1.4 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