UNCLASSIFIED

Skip to content

Haproxy

Kyle Jefferson requested to merge haproxy into master

These are the changes that I have made as a solution to issue #67 (closed). There are some major changes in here that I have tested in a test environment and worked so I hope that it doesn't shut down HAproxy.

  1. apps/haproxy/configure-haproxy.sls
  • I changed the jinja to use hostnames instead of IP addresses from HAproxy routing. the data is pulled from a new file that I created in pillar.
  1. /haproxy.cfg
  • I changed the names to reflect the variables in configure-haproxy.sls
  1. /configuration.sls
  • This is the haproxy configuration file made into a template and stored in pillar. There is a lot more information in this configuration that can be used to better automate HAproxy. I have started in the automation but I wanted to make sure that these changes work first then I will add a haproxy.jinja template that populates from this pillar data.
  1. /hostnames.sls
  • This file contains the data that populates the /etc/hosts file on all salt-minions to enable networking by hostname instead of IP.
  1. /defaults.yaml
  • This file contains the default IP data for the /etc/hosts file on the salt-minons
  1. /hosts.sls
  • This file was changed to add the hostnames of all the salt-minions to the /etc/hosts file of a salt-minion to enable routing by hostname.

Merge request reports