Skip to content

Commit 58da58d

Browse files
committed
1 parent 135dd86 commit 58da58d

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

roles/manage/tasks/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
with_items:
1010
- "/opt/openconext/manage/metadata_configuration"
1111
- "/opt/openconext/manage/metadata_templates"
12+
- "/opt/openconext/manage/policies"
1213

1314
- name: Import the mongo CA file
1415
ansible.builtin.copy:
@@ -72,6 +73,19 @@
7273
notify:
7374
- "restart manageserver"
7475

76+
- name: copy policies configuration
77+
copy:
78+
src: "policies/{{ item }}"
79+
dest: "/opt/openconext/manage/policies/{{ item }}"
80+
owner: root
81+
group: root
82+
mode: "0640"
83+
with_items:
84+
- allowed_attributes.json
85+
- extra_saml_attributes.json
86+
notify:
87+
- "restart manageserver"
88+
7589
- name: Add the mongodb and mariadb docker network to the list of networks when MongoDB runs in Docker
7690
ansible.builtin.set_fact:
7791
manage_docker_networks:

roles/manage/templates/application.yml.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,17 @@ security:
6868
api_users_config_path: file://{{ manage_dir }}/manage-api-users.yml
6969
super_user_attribute_name: {{ manage_super_user_attribute_name }}
7070
super_user_values: {{ manage.super_user_team_names }}
71-
71+
7272
crypto:
7373
development-mode: False
7474
public-key-location: file://{{ manage_dir }}/public_invite_key.pem
7575
enabled: {{ manage.crypto_enabled }}
7676

77+
# Can also be a file system resource like file://{{ manage_dir }}/policies/allowed_attributes.json
78+
policies:
79+
allowed_attributes: file://{{ manage_dir }}/policies/allowed_attributes.json
80+
extra_saml_attributes: file://{{ manage_dir }}/policies/extra_saml_attributes.json
81+
7782
spring:
7883
mail:
7984
host: {{ smtp_server }}

0 commit comments

Comments
 (0)