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 content
on the recipe we take one of those defaults (we need to document that somehow). -
sc_pack pull
command should be run so that we get the<install_dir>/haproxy/data/haproxy.cfg
stored for all the deployments of the tags passed. - Symbolic link
<install_dir>/haproxy/data/haproxy.cfg -> /srv/haproxy/data/haproxy.cfg
- run
systemctl daemon-reload
so that the haproxy.cfg change is got, - run
systemctl restart haproxy