ntdt / haproxy-boshrelease

A BOSH release for haproxy (based on cf-release's haproxy job)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BOSH Release for haproxy

Questions? Pop in our slack channel!

This BOSH release is an attempt to get a more customizable/secure haproxy release than what is provided in cf-release. It allows users to blacklist internal-only domains, preventing potential Host header spoofing from allowing unauthorized access of internal APIs. It also allows for better control over haproxy's timeouts, for greater resiliency under heavy load.

Usage

To use this bosh release, first upload it to your bosh:

bosh upload release https://bosh.io/d/github.com/cloudfoundry-community/haproxy-boshrelease

To deploy it, you will need the repository that contains templates:

git clone https://github.com/cloudfoundry-community/haproxy-boshrelease.git
cd haproxy-boshrelease
git checkout latest

You can either use the templates + examples provided to merge this in with an existing CloudFoundry deployment, or create a new deployment using this command:

make_manifest <aws-ec2|warden> <comma-separated-list-of-router-servers> <additional_templates>

NOTE: make_manifest requires spruce v1.8.9 or newer.

# Example for bare bones bosh-lite haproxy release on warden
templates/make_manifest warden 10.244.0.22
bosh deploy

# Example for using keepalive with haproxy on warden:
KEEPALIVED_VIP=10.244.50.2 templates/make_manifest warden 10.244.0.22

Development

Feel free to contribute back to this via a pull request on a feature branch! Once merged, we'll cut a new final release for you.

About

A BOSH release for haproxy (based on cf-release's haproxy job)

License:Apache License 2.0


Languages

Language:Shell 68.9%Language:HTML 29.4%Language:Ruby 1.7%