cookbook 'gliderlabs_registrator', '~> 0.1.0'
gliderlabs_registrator (1) Versions 0.1.0 Follow0
Installs/Configures gliderlabs_registrator
cookbook 'gliderlabs_registrator', '~> 0.1.0', :supermarket
knife supermarket install gliderlabs_registrator
knife supermarket download gliderlabs_registrator
gliderlabs_registrator Cookbook
This cookbook can be used to install the Gliderlabs Registrator.
Requirements
Supported Platforms
- Debian/Ubuntu
- RHEL/CentOS
Cookbooks
-
docker
- If thedocker
orsource_docker
install method is chosen -
golang
- If thesource
install method is chosen -
yum
,apt
,zypper
- Ifpackage
install method is chosen
Packages
Supported directory needs to be installed, e.g. Consul or Etcd. Please check the
http://gliderlabs.com/registrator/latest/user/backends/
Attributes
gliderlabs_registrator::default
JSON: ['value']
== node['gliderlabs_registrator']['value']
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['install_method']</tt></td>
<td>String</td>
<td>Installation method. Possible values: <tt>'package'</tt>, <tt>'docker'</tt>, <tt>'source_docker'</tt>, <tt>'source'</tt>. Method 'package' requires 'addrepo' recipe to add custom repository.</td>
<td><tt>'source_docker'</tt></td>
</tr>
<tr>
<td><tt>['registrator_repo']</tt></td>
<td>String</td>
<td>Docker repo for 'docker' installation method</td>
<td><tt>'gliderlabs/registrator'</tt></td>
</tr>
<tr>
<td><tt>['registrator_tag']</tt></td>
<td>String</td>
<td>Docker repo tag for 'docker' installation method</td>
<td><tt>'latest'</tt></td>
</tr>
<tr>
<td><tt>['golang_docker_repo']</tt></td>
<td>String</td>
<td>Docker repo with Go image for 'source_docker' install method</td>
<td><tt>'golang'</tt></td>
</tr>
<tr>
<td><tt>['golang_docker_tag']</tt></td>
<td>String</td>
<td>Docker repo tag for 'source_docker' install method</td>
<td><tt>'latest'</tt></td>
</tr>
<tr>
<td><tt>['bin_path']</tt></td>
<td>String</td>
<td>Path where to place the binary for 'source_docker' and 'source' methods</td>
<td><tt>'/usr/local/bin'</tt></td>
</tr>
<tr>
<td><tt>['src_command']</tt></td>
<td>String</td>
<td>Command to use to get sources for 'source_docker' and 'source' methods</td>
<td><tt>'go get github.com/gliderlabs/registrator'</tt></td>
</tr>
<tr>
<td><tt>['backend']</tt></td>
<td>String</td>
<td>Directory backend type. Check documentation for the list of supported backends.</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['backend_url']</tt></td>
<td>String</td>
<td>Directory backend URL</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['backend_port']</tt></td>
<td>String</td>
<td>Directory backend port</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['cleanup']</tt></td>
<td>String</td>
<td>Remove dangling services</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['deregister']</tt></td>
<td>String</td>
<td>Deregister exited services "always" or "on-success"</td>
<td><tt>'always'</tt></td>
</tr>
<tr>
<td><tt>['internal']</tt></td>
<td>String</td>
<td>Use internal ports instead of published ones</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['ip']</tt></td>
<td>String</td>
<td>IP for ports mapped to the host</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['resync']</tt></td>
<td>String</td>
<td>Frequency with which services are resynchronized</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['retry-attempts']</tt></td>
<td>String</td>
<td>Max retry attempts to establish a connection with the backend. Use -1 for infinite retries</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['retry-interval']</tt></td>
<td>String</td>
<td>Interval (in millisecond) between retry-attempts.</td>
<td><tt>2000</tt></td>
</tr>
<tr>
<td><tt>['tags']</tt></td>
<td>String</td>
<td>Append tags for all registered services</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['ttl']</tt></td>
<td>String</td>
<td>TTL for services (default is no expiry)</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['ttl-refresh']</tt></td>
<td>String</td>
<td>Frequency with which service TTLs are refreshed</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['docker_bind']</tt></td>
<td>String</td>
<td>Docker socket to listen</td>
<td><tt>'/var/run/docker.sock:/tmp/docker.sock'</tt></td>
</tr>
</table>
Usage
gliderlabs_registrator::default
Include gliderlabs_registrator
in your node's run_list
:
{ "run_list": [ "recipe[gliderlabs_registrator::default]" ] }
Alternatively, you can include it within your own recipe:
include_recipe 'gliderlabs_registrator::default'
License and Authors
Author:: Petr Belyaev upcfrost@gmail.com
Dependent cookbooks
docker >= 0.0.0 |
golang >= 0.0.0 |
yum >= 0.0.0 |
apt >= 0.0.0 |
zypper >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of gliderlabs_registrator
Collaborator Number Metric
0.1.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.1.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.1.0 failed this metric
FC066: Ensure chef_version is set in metadata: gliderlabs_registrator/metadata.rb:1
FC120: Do not set the name property directly on a resource: gliderlabs_registrator/recipes/addrepo.rb:42
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.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.1.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.1.0 failed this metric
0.1.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.1.0 failed this metric
FC066: Ensure chef_version is set in metadata: gliderlabs_registrator/metadata.rb:1
FC120: Do not set the name property directly on a resource: gliderlabs_registrator/recipes/addrepo.rb:42
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.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.1.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.1.0 failed this metric
FC120: Do not set the name property directly on a resource: gliderlabs_registrator/recipes/addrepo.rb:42
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.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.1.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.1.0 failed this metric
0.1.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