Skip to content

Commit 0bfc886

Browse files
phavekespmeulen
andauthored
Add federation metadata cache to azuremfa (#542)
Co-authored-by: Pieter van der Meulen <pieter.vandermeulen@surf.nl>
1 parent 522a6d4 commit 0bfc886

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/molecule-mongo.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ on:
1616

1717
jobs:
1818
build:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-24.04
2020
steps:
2121
- uses: actions/checkout@v5
22-
2322
- name: Set up Python 3.8
2423
uses: actions/setup-python@v6
2524
with:

roles/stepupazuremfa/tasks/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
- "{{ current_release_config_dir_name }}"
2727
- "{{ current_release_appdir }}/public/images"
2828

29+
- name: Create federation-metadata cache dir
30+
ansible.builtin.file:
31+
state: directory
32+
dest: "{{ item }}"
33+
owner: "{{ appname }}"
34+
group: root
35+
mode: "0755"
36+
with_items:
37+
- "{{ current_release_appdir }}/federation-metadata"
38+
2939
- name: Install images
3040
ansible.builtin.include_role:
3141
name: stepupapp
@@ -70,10 +80,13 @@
7080
APACHE_UID: "#{{ azuremfa_uid.uid }}"
7181
APACHE_GUID: "#{{ azuremfa_guid.gid }}"
7282
mounts:
73-
- source: /opt/openconext/azuremfa/public/images/header-logo.png
83+
- source: "{{ current_release_appdir }}/public/images/header-logo.png"
7484
target: /var/www/html/public/build/images/header-logo.png
7585
type: bind
76-
- source: /opt/openconext/azuremfa
86+
- source: "{{ current_release_appdir }}"
7787
target: /var/www/html/config/openconext
7888
type: bind
89+
- source: "{{ current_release_appdir }}/federation-metadata"
90+
target: /var/www/html/federation-metadata
91+
type: bind
7992
register: azuremfacontainer

roles/stepupazuremfa/templates/parameters.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
{% if 'docker' in group_names %}
33
app_env: prod
4-
app_debug: false
4+
app_debug: false
55
app_secret: {{ azuremfa_secret }}
66
{% endif %}
77
# All locales supported by the application
@@ -31,4 +31,4 @@ parameters:
3131
ra_issuer_entity_id_regex: '@@^https://(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/vetting-procedure/gssf/azuremfa/metadata$@'
3232

3333
# Metadata cache settings
34-
federation_metadata_cache_location: '/var/www/html/federation-metadata'
34+
federation_metadata_cache_location : '{{ current_release_config_file_dir_name_in_config }}/federation-metadata'

0 commit comments

Comments
 (0)