Skip to content

Commit ebe49ed

Browse files
authored
attribute-aggregation: Configure institution service providers from ansible template (#518)
1 parent 890571e commit ebe49ed

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

environments/template/group_vars/template.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,15 @@ aa:
230230
invite_username: aa
231231
invite_password: "todo"
232232
aggregate_cache: 0
233+
institutions:
234+
"https://mock-sp":
235+
baseUrl: "http://localhost:8989/"
236+
userName: "api-user"
237+
password: "secret"
238+
"https://mock-rp":
239+
baseUrl: "http://localhost:8989"
240+
userName: "api-user"
241+
password: "secret"
233242

234243
oidcng:
235244
issuer: https://connect.{{ base_domain }}/
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
{
2-
"https://mock-sp": {
3-
"baseUrl": "http://localhost:8989/",
4-
"userName": "api-user",
5-
"password": "secret"
6-
},
7-
"https://mock-rp": {
8-
"baseUrl": "http://localhost:8989",
9-
"userName": "api-user",
10-
"password": "secret"
11-
}
12-
}
2+
{% for institution_key, institution in aa.institutions.items() %}
3+
"{{ institution_key }}": {
4+
"baseUrl": "{{ institution.baseUrl }}",
5+
"userName": "{{ institution.userName }}",
6+
"password": "{{ institution.password }}"
7+
}{% if not loop.last %},{% endif %}
8+
{% endfor %}
9+
}

0 commit comments

Comments
 (0)