I am using puppetlabs-haproxy and need to use consul-template. As you know, puppetlabs-haproxy can create the configuration for you. However, I also need consul-template to change that configuration. How do you reconcile them?
I don't want to completely unmanage from puppet the haproxy configuration because if I have something new, it's fill-in-the-blanks easy in the manifest for frontends -- including ports (I wrote a function that generates a port based on the hash of the service name -- so it's really easy).
In order for consul-template to work, I need to completely unmanage haproxy.cfg from puppet which means defining new frontends lose their fill-in-the-blanks ease. Thanks for your help in advance.
↧