Skip to main content

Buildout recipe to install haproxy

Project description

Supported options

This recipe supports the following options:

url

URL pointing to the haproxy compressed archive. E.g. http://dist.plone.org/thirdparty/haproxy-1.3.22.zip This option is required.

target

Target can be one of the following: linux22, linux24, linux24e linux24eold, linux26, solaris, freebsd, openbsd, generic.

cpu

CPU can be one of the following: i686, i586, ultrasparc, generic.

pcre

Set to 1 to enable the use of the PCRE library.

Example usage

By default this recipe will work with only the url option specified, e.g.:

[buildout]
parts +=
    ...
    haproxy

[haproxy]
recipe = plone.recipe.haproxy
url = http://haproxy.1wt.eu/download/1.3/src/haproxy-1.3.22.tar.gz

This will configure the default options for target, pcre, and cpu. If you like or need to you can override these parameters, e.g.:

[haproxy]
recipe = plone.recipe.haproxy
url = http://my.dist.server/haproxy-1.3.22.zip
target = linux26
cpu = i686
pcre = 1

Tests

We’ll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',
... """
... [buildout]
... parts = haproxy
...
... [haproxy]
... recipe = plone.recipe.haproxy
... url = %(url)s
... """ % { 'url' : 'http://dist.plone.org/thirdparty/yxorpah-1.3.22.zip'})

Running the buildout with a known bad URL gives us:

>>> print system(buildout)
Installing haproxy.
haproxy: Downloading http://dist.plone.org/thirdparty/yxorpah-1.3.22.zip
While:
  Installing haproxy.
<BLANKLINE>
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
...
HTTPError: HTTP Error 404: Not Found
<BLANKLINE>

XXX If you are reading this, please consider adding more tests ;-)

Contributors

  • Helge Tesdal, Author [tesdal]

  • Alex Clark, Support and maintenance [aclark]

Releases

1.0b2 (2010-01-12)

  • Clean up documentation, reorganize package contents. [aclark]

  • Don’t force make -f Makefile.osx on OS X, fixes Snow Leopard compilation. [aclark]

1.0b1 (2008-11-25)

  • First public release [Helge Tesdal].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.recipe.haproxy-1.0b2.zip (13.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page