Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage: Make the tabs configurable #440

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions molecule/java/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
- 192.168.1.1
- 10.0.0.1
- "{{ ansible_all_ipv4_addresses[0] }}"
mongo_replication_role: primary
mongo_tls_host_altname_dnsorip: DNS

roles:
- role: rsyslog
Expand Down
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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Manage heten dit niet tabs maar types geloof ik

- 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
Loading