dfarrell-bloom/consul-conf — pull request #5 by dfarrell-bloom (2014-07-10 13:03:43+00:00)
Title: Consul-Conf: config templates from consul data

Object oriented mechanism to rewrite config files from template filled in by consul data. The primary functionality here is to go through the consul services and nodes, using their health checks to come up with an idea of what nodes offer what servies and their health status. This data can then be plugged into template to write out a configuration file. The code includes a diffing mechanism to verify that the file has changed, with comment exclusion, and hooks eg to restart services.