Skip to content
Snippets Groups Projects
Commit e6691e23 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-http-proxy-rewrite-map' into 'feat-hpc-factory'

Feat http proxy rewrite map

See merge request rc/hpc-factory!155
parents 2e57b1b3 0a084d03
No related branches found
No related tags found
2 merge requests!155Feat http proxy rewrite map,!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
Pipeline #12773 passed with stage
in 15 minutes and 4 seconds
......@@ -11,3 +11,4 @@
- { name: 'ssh_proxy_config', tags: 'ssh_proxy_config', when: enable_ssh_proxy_config }
- { name: 'ssl_cert', tags: 'ssl_cert', when: enable_ssl_certs }
- { name: 'rsyslog_config', tags: 'rsyslog_config', when: enable_rsyslog_config }
- { name: 'rewrite_map', tags: 'rewrite_map', when: enable_rewrite_map }
......@@ -66,3 +66,10 @@
ssl_cert_chain_file: ""
ssl_apache_config: ""
apache_service: "httpd"
# rewrite map
enable_rewrite_map: false
target_groups:
- {"name": "gpfs4", "host": "login001", "default": True }
- {"name": "gpfs5", "host": "login002", "default": False }
---
- name: Add apache rewritemap script config
ansible.builtin.template:
src: rewrite_map_config_py.j2
mode: '600'
user: root
group: root
dest: /var/www/rewrite_map_config.py
DEBUG = False
target_groups = {
{% for group in target_groups %}
"{{ group.name }}": "{{ group.host }}",
{% endfor %}
}
{% for group in target_groups %}
{% if group.default %}
default_hostname = "{{ group.host }}"
{% endif %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment