Code Monkey home page Code Monkey logo

haproxy-plugin's Introduction

HAPROXY Enaml Plugin for OMG

this plugin provides support for multiple certs and configuration of trusted

domains/cidr ranges. this is useful when trying to employ a L shaped network

topology in front of PCF.

Plugin setup

# download the omg-cli which is used to run plugins
# please be sure to swap osx for linux if that is the system you intend to run
# this on
$ wget -O omg https://github.com/enaml-ops/omg-cli/releases/download/v1.0.3/omg-osx && chmod +x omg

# download the plugin. feel free to swap the version for your desired version
$ wget -O haproxy https://github.com/enaml-ops/haproxy-plugin/releases/download/v0.0.6/haproxy-plugin-osx 

# register the plugin in omg-cli client
$ ./omg register-plugin --type product --pluginpath haproxy

# list registered plugins to show registration was successfull
$ ./omg list-products

# output deploy-product arguments for targetting a bosh
$ ./omg deploy-product --help

# output deploy-product commands for the haproxy product
$ ./omg deploy-product haproxy --help

# to deploy haproxy or print the manifest a command like the following would be used
$ ./omg deploy-product \
   --bosh-url "https://xx.xxx.x.xx" \
   --bosh-port 25555 \
   --bosh-user director \
   --bosh-pass password \
   --ssl-ignore \
   --print-manifest \
   haproxy \ 
   --deployment-name haproxy \
   --vm-type Standard_F1s \
   --network-name ert-network \
   --stemcell-name ubuntu-trusty \
   --stemcell-alias trusty \
   --stemcell-ver 3232.17 \
   --haproxy-release-ver latest \
   --haproxy-release-url https://bosh.io/d/github.com/cloudfoundry-community/haproxy-boshrelease?v=8.0.9 \
   --haproxy-release-sha 13598c70a50f8caf95d06782d67610daede8aeb9 \
   --gorouter-ip xx.xxx.x.xx  \
   --haproxy-ip xx.xxx.x.xx \
   --haproxy-ip xx.xxx.x.xx \
   --cert-filepath certs/apps01.DOMAIN.chain.pem \
   --trusted-domain-cidr "xx.xxx.x.0/23"

Notes

  • using the --print-manifest flag will simply output the generated manifest to stdout

haproxy-plugin's People

Contributors

xchapter7x avatar

Watchers

 avatar

Forkers

ryanpei

haproxy-plugin's Issues

Support for multiple haproxy instances?

I should be able to provide multiple haproxy IPs, e.g.

./omg deploy-product \
   ...
   --gorouter-ip 10.10.4.20  \
   --gorouter-ip 10.10.4.21  \
   --gorouter-ip 10.10.4.22  \
   --gorouter-ip 10.10.4.23  \
   --haproxy-ip 10.10.4.100 \
   --haproxy-ip 10.10.4.101 \
   --haproxy-ip 10.10.4.102 \
   ...

However, the current implementation only supports a single HAProxy instance, and uses the last IP provided, not all 3 as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.