Skip to content

Commit

Permalink
Manage: Make the tabs configurable
Browse files Browse the repository at this point in the history
Manage has tabs that might not be applicable in every situation (e.g
oidc, or resource servers, or provisioning). You can disable certain
tabs by adding manage_tabs_enabled to your group_vars and overriding the
default list
  • Loading branch information
quartje committed Oct 9, 2023
1 parent ee96538 commit d929196
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 7 deletions.
7 changes: 7 additions & 0 deletions roles/manage-server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ manage_manage_provision_samlsp_sp_cert: ""
manage_manage_provision_samlsp_trusted_proxy: false
manage_manage_provision_samlsp_sign: false
manage_provision_push: false
manage_tabs_enabled:
- saml20_idp
- saml20_sp
- oidc10_rp
- oauth20_rs
- single_tenant_template
- provisioning
26 changes: 19 additions & 7 deletions roles/manage-server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,27 @@
notify:
- "restart manage"

- name: copy and template metadata configuration
- name: copy metadata configuration
template:
src: "{{ item }}"
dest: '{{ manage_dir }}/metadata_configuration/{{ item | basename | regex_replace("\.j2","") }}'
src: "metadata_configuration/{{ item }}.schema.json.j2"
dest: "{{ manage_dir }}/metadata_configuration/{{ item }}.schema.json"
owner: manage
group: manage
mode: "0640"
with_items:
- "{{ manage_tabs_enabled }}"
notify:
- "restart manage"

- name: copy metadata templates
copy:
src: "metadata_templates/{{ item }}.template.json"
dest: "{{ manage_dir }}/metadata_templates/{{ item }}.template.json"
owner: manage
group: manage
mode: 0640
with_fileglob: "metadata_configuration/*.j2"
mode: "0640"
with_items:
- "{{ manage_tabs_enabled }}"
notify:
- "restart manage"

Expand All @@ -56,10 +69,9 @@
dest: "{{ manage_dir }}"
owner: manage
group: manage
mode: 0640
mode: "0640"
with_items:
- metadata_export
- metadata_templates
notify:
- "restart manage"

Expand Down

0 comments on commit d929196

Please sign in to comment.