Skip to content

Commit

Permalink
Use same environment ribbon in various apps
Browse files Browse the repository at this point in the history
  • Loading branch information
thijskh committed Sep 27, 2023
1 parent 0987c12 commit 4739142
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ oidcng_vhost: "connect.{{ base_domain }}"

admin_email: "[email protected]"

# Shown in banner on top right of UI in apps.
# Colour can be: crimson, orange, hotpink or khaki
environment_shortname: ""
environment_ribbon_colour: ""

httpd_csp:
lenient: "default-src; object-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; img-src 'self' data:; form-action 'self'; base-uri 'none'"
lenient_with_static_img: "default-src; object-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'; img-src 'self' {{ static_vhost }} data:; form-action 'self'; base-uri 'none'"
Expand Down
2 changes: 2 additions & 0 deletions roles/engineblock/templates/parameters.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ parameters:
view_default_logo: /images/logo.png
view_default_logo_width: 96
view_default_logo_height: 96
env_name: {{ environment_shortname }}
env_ribbon_color: {{ environment_ribbon_colour }}

ui_return_to_sp_link: false

Expand Down
4 changes: 2 additions & 2 deletions roles/invite/templates/serverapplication.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ institution-admin:

gui:
disclaimer:
background-color: {{ invite.disclaimer_background_color }}
content: {{ invite.disclaimer_content }}
background-color: {{ environment_ribbon_colour }}
content: {{ environment_shortname }}

config:
client-url: "https://invite.{{ base_domain}}"
Expand Down
4 changes: 2 additions & 2 deletions roles/manage-server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ manage_snapshot_timestamp: ''
manage_jar: manage-current.jar
manage_random_source: 'file:///dev/urandom'
manage_cronjobmaster: false
manage_disclaimer_background_color: skyblue
manage_disclaimer_content: "{{ env }}"
manage_disclaimer_background_color: "{{ environment_ribbon_colour }}"
manage_disclaimer_content: "{{ environment_shortname }}"
manage_service_provider_feed_url: "http://mds.edugain.org/edugain-v2.xml"
manage_exclude_edugain_imports_in_push: true
manage_show_oidc_rp_tab: false
Expand Down

0 comments on commit 4739142

Please sign in to comment.