From 1eaa4019b0e8e209fdab06a011d50fa854396675 Mon Sep 17 00:00:00 2001 From: Aday Bujeda Date: Wed, 22 Nov 2023 13:24:27 +0000 Subject: [PATCH] Removed Nginx stage ondemand title default value --- REFERENCE.md | 2 +- manifests/init.pp | 2 +- templates/nginx_stage.yml.erb | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index f69c628..8eddd5a 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -752,7 +752,7 @@ Data type: `String` nginx_stage.yml ondemand_title -Default value: `'Open OnDemand'` +Default value: `undef` ##### `nginx_stage_pun_custom_env` diff --git a/manifests/init.pp b/manifests/init.pp index f9adcb8..4526d8b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -318,7 +318,7 @@ # nginx_stage configs String $nginx_stage_clean_cron_schedule = '0 */2 * * *', String $nginx_stage_ondemand_portal = 'ondemand', - String $nginx_stage_ondemand_title = 'Open OnDemand', + Optional[String] $nginx_stage_ondemand_title = undef, Hash $nginx_stage_pun_custom_env = {}, Openondemand::Nginx_stage_namespace_config $nginx_stage_app_root = {}, String $nginx_stage_scl_env = 'ondemand', diff --git a/templates/nginx_stage.yml.erb b/templates/nginx_stage.yml.erb index d49cbc4..7c9d7b0 100644 --- a/templates/nginx_stage.yml.erb +++ b/templates/nginx_stage.yml.erb @@ -28,7 +28,9 @@ ondemand_portal: '<%= scope['openondemand::nginx_stage_ondemand_portal'] -%>' # NB: If this is not set then most apps will use default title "Open OnDemand" # #ondemand_title: null +<% if scope['openondemand::nginx_stage_ondemand_title'] != nil -%> ondemand_title: '<%= scope['openondemand::nginx_stage_ondemand_title'] -%>' +<% end -%> # Custom environment variables to set for the PUN environment # Below is an example of the use for setting env vars.