Skip to content
Snippets Groups Projects

Have the possibility to define redirects in the individual projects

Merged 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

Merged by jurgenhaasjurgenhaas 5 years ago (Feb 13, 2020 9:52am 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
Loading