Skip to content

Have the possibility to define redirects in the individual projects

Eric Zillmann requested to merge ericzillmann/drupal:master into master

Hi.

As discussed in ansible-inventories/arocom#2840 we are interested in defining redirects within the individual project repositories.

For this I created a Script (haproxy_redirects_collector.php.jinja2) and a task with tag haproxy_redirects_collector.

The script fetches json files from the project's /redirects/*.json, merges the contents and saves them to /etc/ansible/facts.d/proxy_redirect_maps.fact.

In case of invalid json files these will be ignored (the merging function array_merge_one_level does this by checking if it got arrays to work with).

Eric

Merge request reports