Install, configure and run haproxy.
Note
See the full Salt Formulas installation and usage instructions.
Use jinja template and the pillar for a salt approach. You can also use a flat file if you wish, although the template itself is pretty generic in that it will parse whatever you put in. See pillar example.
Install, configure and run haproxy service.
Install haproxy from packages.
Make sure haproxy service is running.