public
Description: Miscellaneous scripts surrounding HAProxy
Homepage:
Clone URL: git://github.com/finnlabs/haproxy.git
finnlabs • software architects (author)
Mon Jun 15 05:35:50 -0700 2009
name age message
file README.markdown Mon Jun 15 05:35:50 -0700 2009 Fixed some typos [finnlabs • software architects]
file haproxy-config.py Mon Jun 15 05:23:17 -0700 2009 first commit [Holger Just]
file haproxy-init Mon Jun 15 05:35:50 -0700 2009 Fixed some typos [finnlabs • software architects]
README.markdown

HAProxy

These are just some scripts that are used to split up the monolithic configuration file of haproxy into chunks.

haproxy-config.py

This is a python script that merges the configuration of haproxy which is layed out in a defined directory structure. It is intended to be run inside an init script.

This script expects a fixed directory structure. For more information about that have a look into the comments on top of the script.

haproxy-init

This script is an example init script for haproxy. It is adapted from the script which is provided by the haproxy package for debian. The original author of the script is Arnaud Cornet.

Getting started

  1. Copy haproxy-config into a directory of your choice. I recommend something like /usr/local/sbin/haproxy-config
  2. Copy haproxy-init into your /etc/init.d directory. You should rename it to something like haproxy.
  3. Adjust the variables on top of the init script to match your local installation.
  4. Run chmod +x /etc/init.d/haproxy /usr/local/sbin/haproxy-config.py (adjust as needed)