diff --git a/global/overlay/etc/puppet/modules/soc/manifests/vuln_dashboard.pp b/global/overlay/etc/puppet/modules/soc/manifests/vuln_dashboard.pp index dd0f088..d63c5bd 100644 --- a/global/overlay/etc/puppet/modules/soc/manifests/vuln_dashboard.pp +++ b/global/overlay/etc/puppet/modules/soc/manifests/vuln_dashboard.pp @@ -10,6 +10,7 @@ class soc::vuln_dashboard( String $admin_contact = 'cert@cert.sunet.se', String $docker_image = 'platform.sunet.se/verglasz/vuln-management/dashboard-dev', String $sso_proxy_network = 'sso', + Boolean $debug_mode = true, ) { $db_name=lookup('vuln-dashboard.dn_name', undef, undef, 'vuln_dashboard') @@ -21,6 +22,11 @@ class soc::vuln_dashboard( $censys_api_id=lookup('vuln-dashboard.censys.api_id', undef, undef, 'null') $app_config_file='/opt/vuln-dashboard/app-config.yaml' + if $debug_mode { + $django_debug='True' + } else { + $django_debug='False' + } file { '/opt/vuln-dashboard': diff --git a/global/overlay/etc/puppet/modules/soc/templates/vuln-dashboard/docker-compose.yml.erb b/global/overlay/etc/puppet/modules/soc/templates/vuln-dashboard/docker-compose.yml.erb index c4aacc1..b476abe 100644 --- a/global/overlay/etc/puppet/modules/soc/templates/vuln-dashboard/docker-compose.yml.erb +++ b/global/overlay/etc/puppet/modules/soc/templates/vuln-dashboard/docker-compose.yml.erb @@ -23,6 +23,7 @@ services: DJANGO_ALLOWED_ORIGINS: <%= @allowed_origins %> STATIC_ROOT: /app/static DASHBOARD_CONFIG_FILE: /app/config.yaml + DJANGO_DEBUG: <%= @django_debug %> init: true volumes: - pocs-data:/app/stored_pocs