Skip to main content

Asynchronous updating of consul with zope configration

Project description

collective.zopeconsul enables asynchronous sending of zope configuration to consul. It sends the VHM domain information to consul along with port and ip address of this instance. It can also be used to set key/value pairs from buildout config options or environment variables.


zopeconsul can be configured by adding the following to your buildout:

eggs = collective.zopeconsul

zope-conf-additional =
  <product-config zopeconsul>
    consul_url http://localhost:8500
    consul_prefix zope
    consul_key_somename somevalue

Any configuration option can be overridden by an environment variable:

$ export CONSUL_URL=http://localhost:8500
$ export CONSUL_KEY_SOMENAME=somevalue

Configuration options

Url of the consul server to connect to. Default: http://localhost:8500
When setting key/values, this is the base key from which all values are set. Default: zope
Gives a name to the instance. Instead of values being placed in <consul_prefix>, they are placed in <consul_prefix>/instances/<instance_name> on the consul server. Useful when there are multiple instances being orchestrated from consul. Default: unset
Allows to set arbitrary key values with any name. Example: ``consul_key_somekey = somevalue``
Skips setting consul key values. Useful if you have multiple instances that share the same code. You can set this value on specific instances and no key/values will be set in consul.


0.1 (2018-02-01)

  • Initial setup and vhm monkeypatching [djay]
  • Addition of zope-additional-configuration option [instification]
  • Addition of key/value pairs to consul [instification]

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for collective.zopeconsul, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size collective.zopeconsul-0.1.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page