cookbook 'baragon', '= 2.2.0'
baragon (10) Versions 2.2.0 Follow1
Installs/Configures baragon
cookbook 'baragon', '= 2.2.0', :supermarket
knife supermarket install baragon
knife supermarket download baragon
baragon-cookbook
Installs Baragon (service or agent) on a node. Baragon is the loadbalancer management service for HubSpot's Singularity cluster management system.
Supported Platforms
Tested on an extensive range of platforms including Ubuntu 14.04 and nothing else.
Requirements
Zookeeper
Baragon depends on ZooKeeper to store internal state, and perform coordination between multiple BaragonService
instances if high availability is desired. Using an existing Zookeeper cluster is totally fine if you happen to have one. Separate Baragon installations can also share the same Zookeeper cluster, provided they use different zkNamespace
values.
Nginx
Baragon writes nginx-style config files by default. In theory other load balancers could be used, but the tool is designed around the style of config files used by nginx.
The main requirement is that each application and upstream has its own file containing all necessary configuration directives (as opposed to, say, haproxy, where all configuration is parsed in order from top to bottom from a single, monolithic file).
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>[:baragon][:group_name]</tt></td>
<td>String</td>
<td>Load Balancer Group Name</td>
<td><tt>default</tt></td>
</tr>
<tr>
<td><tt>[:baragon][:proxy_conf_dir]</tt></td>
<td>String</td>
<td>Directory where the proxy config files are placed</td>
<td><tt>/tmp</tt></td>
</tr>
<tr>
<td><tt>[:baragon][:upstream_conf_dir]</tt></td>
<td>String</td>
<td>Directory where the upstream config files are placed</td>
<td>Value of <tt>node[:baragon][:proxy_conf_dir]</tt></td>
</tr>
<tr>
<td><tt>[:baragon][:server_port]</tt></td>
<td>Integer</td>
<td>Baragon service listener port</td>
<td><tt>8080</tt></td>
</tr>
</table>
Usage
baragon::server
Include baragon::server
in your node's run_list
:
{ "run_list": [ "recipe[baragon::server]" ] }
…or in a wrapper cookbook:
include_recipe 'baragon::server'
baragon::agent
Include baragon::agent
in your node's run_list
:
{ "run_list": [ "recipe[baragon::agent]" ] }
…or in a wrapper cookbook:
include_recipe 'baragon::agent'
License and Authors
Author:: EverTrue, Inc. (devops@evertrue.com)
Dependent cookbooks
java >= 0.0.0 |
git >= 0.0.0 |
logrotate >= 0.0.0 |
maven >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
2.2.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:77
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:78
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/service.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/service.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:41
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:44
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:45
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:47
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:49
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:50
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:51
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:54
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:56
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:65
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:67
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:70
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:71
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:54
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/templates/default/baragon-server.init.erb:10
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:16
FC017: LWRP does not notify when updated: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:1
FC017: LWRP does not notify when updated: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:109
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:4
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:37
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/package.rb:6
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:23
FC031: Cookbook without metadata file: /tmp/cook/c185366747a6988af3547a53/baragon/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/c185366747a6988af3547a53/baragon/metadata.rb:1
2.2.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:77
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/agent.rb:78
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/service.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/attributes/service.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:41
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:44
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:45
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:47
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:49
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:50
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:51
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:54
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:56
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:65
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:67
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:70
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:71
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/build.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:54
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c185366747a6988af3547a53/baragon/templates/default/baragon-server.init.erb:10
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/common.rb:16
FC017: LWRP does not notify when updated: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:1
FC017: LWRP does not notify when updated: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:109
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:4
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/providers/agent.rb:37
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/package.rb:6
FC019: Access node attributes in a consistent manner: /tmp/cook/c185366747a6988af3547a53/baragon/recipes/server.rb:23
FC031: Cookbook without metadata file: /tmp/cook/c185366747a6988af3547a53/baragon/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/c185366747a6988af3547a53/baragon/metadata.rb:1