UNCLASSIFIED

Skip to content
Snippets Groups Projects

Haproxy

Closed 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

Closed by John WardJohn Ward 2 years ago (Aug 29, 2022 9:05pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply