Skip to content

Commit

Permalink
YDA-5719: add portal theme configuration
Browse files Browse the repository at this point in the history
Co-authored-by: Lazlo Westerhof <l.r.westerhof@uu.nl>
  • Loading branch information
FuHsinyu and lwesterhof authored Jul 23, 2024
1 parent ab95a04 commit 6e4f4fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions roles/yoda_portal/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ update_portal: true
# Yoda theme
yoda_theme_path: /var/www/yoda/themes # Base path holding customised portal themes
yoda_theme: uu # Yoda theme: uu or vu (default: uu)
yoda_main_path: /var/www/yoda # Yoda portal installation path
theme_mapping:
uu: "Utrecht University - default"
uu_its: "Utrecht University - ITS"
uu_gw: "Utrecht University - Humanities"
uu_youth: "Utrecht University - YOUth"
uu_i-lab: "Utrecht University - i-lab"
uu_science: "Utrecht University - Science"
uu_fsw: "Utrecht University - Social Science"
uu_geo: "Utrecht University - Geo"
uu_dgk: "Utrecht University - Veterinary Medicine"
uu_dag: "Utrecht University - Data Archive for Geosciences (DAG)"
vu: "Vrije University Amsterdam"
wur: "Wageningen University & Research"

# Yoda portal
yoda_portal_version: "{{ yoda_version }}"
Expand Down
3 changes: 2 additions & 1 deletion roles/yoda_portal/templates/flask.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ OIDC_JWT_OPTIONS = {
# Portal theme configuration
YODA_THEME_PATH = '{{ yoda_theme_path | default("/var/www/yoda/themes") }}' # Path to location of themes
YODA_THEME = '{{ yoda_theme | default("uu") }}' # Reference to actual theme directory in YODA_THEME_PATH

YODA_MAIN_PATH = '{{ yoda_main_path | default("/var/www/yoda") }}'
YODA_THEME_MAPPING = {{ theme_mapping | default("{}") }}
# External User Service configuration
YODA_EUS_FQDN = '{{ yoda_eus_fqdn | default("") }}'

Expand Down

0 comments on commit 6e4f4fe

Please sign in to comment.