haproxy for CDN like recipes
There are several things we need to put in place here:
- we need to use what we implement at #15, to have the haproxy template in the accelerator database with the right tags. For that Carlos and Vladir discussed that we can have several defaults regarding the more common haproxy templates we use here https://gitlab.zunzun.se/public-items/ansible-sc_pack-public/-/blob/develop/roles/create_deploy_type_cdn/defaults/main.yml, so if nothing is passed as
haproxy template contenton the recipe we take one of those defaults (we need to document that somehow).
sc_pack pullcommand should be run so that we get the
<install_dir>/haproxy/data/haproxy.cfgstored for all the deployments of the tags passed.
- Symbolic link
<install_dir>/haproxy/data/haproxy.cfg -> /srv/haproxy/data/haproxy.cfg
systemctl daemon-reloadso that the haproxy.cfg change is got,
systemctl restart haproxy