cookbook 'proxy', '~> 1.0.0'
proxy (1) Versions 1.0.0 Follow2
Sets up instances for proxying traffic
cookbook 'proxy', '~> 1.0.0', :supermarket
knife supermarket install proxy
knife supermarket download proxy
Chef Proxy cookbook
A cookbook for managing /etc/hosts. Wraps around the Opscode HAproxy
cookbook (https://github.com/opscode-cookbooks/haproxy)
Use cases
We use this cookbook to trick service instances into sending traffic meant for external
/ third-party services through a proxy instance we control. The proxy instance
runs HAproxy, while the service instances have their /etc/hosts modified
to route endpoint traffic towards this proxy. This lets us more easily manage egress traffic.
Recipes
Default
Calls the Server
recipe
Server
Configures an instance to route traffic via HAproxy
Client
Configures an instance to send traffic destined for a host to go through a
proxy instance via the node[:proxy][:host]
attribute.
Resources
proxy_host
This resource creates, modifies, or deletes an /etc/hosts entry using either
the :create (default) or :delete action. Includes the following parameters:
-
remote_host
: the endpoint of the traffic (name attribute) -
ipaddr
: IP address to proxy the traffic through (optional) -
comment
: Comment for extra information appended to the entry (optional) -
action
: One of :create (default) or :delete
Author
Simple Finance ops@simple.com
License
Apache License, Version 2.0
Dependent cookbooks
haproxy >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.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
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: proxy/metadata.rb:1
FC065: Ensure source_url is set in metadata: proxy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: proxy/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: proxy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: proxy/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: proxy/resources/host.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:54
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:78
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.0 failed this metric
1.0.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
1.0.0 failed this metric
FC064: Ensure issues_url is set in metadata: proxy/metadata.rb:1
FC065: Ensure source_url is set in metadata: proxy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: proxy/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: proxy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: proxy/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: proxy/resources/host.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:54
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:78
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.0 failed this metric
FC065: Ensure source_url is set in metadata: proxy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: proxy/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: proxy/metadata.rb:1
FC069: Ensure standardized license defined in metadata: proxy/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: proxy/resources/host.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:29
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:54
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: proxy/providers/host.rb:78
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.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
1.0.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
1.0.0 failed this metric
1.0.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