From a5f432b849c73cbb49d942c2e9d955d24c5ee88e Mon Sep 17 00:00:00 2001 From: Zhu Sheng Li Date: Fri, 25 Sep 2020 10:22:50 +0800 Subject: [PATCH] Add parameter for setting horizon session timeout Add HorizonSessionTimeout parameter for configuring the session timeout of horizon in seconds. Closes-Bug: #1897197 Change-Id: I1bfd645ed9e1823a626d6972ab00893ca49bba83 --- deployment/horizon/horizon-container-puppet.yaml | 5 +++++ .../notes/horizon-session-timeout-ba4a62b5f38cbd11.yaml | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 releasenotes/notes/horizon-session-timeout-ba4a62b5f38cbd11.yaml diff --git a/deployment/horizon/horizon-container-puppet.yaml b/deployment/horizon/horizon-container-puppet.yaml index 216b962ef4..92e5ba4582 100644 --- a/deployment/horizon/horizon-container-puppet.yaml +++ b/deployment/horizon/horizon-container-puppet.yaml @@ -68,6 +68,10 @@ parameters: description: Set CSRF_COOKIE_SECURE / SESSION_COOKIE_SECURE in Horizon type: boolean default: false + HorizonSessionTimeout: + description: Set session timeout for horizon in seconds + type: number + default: 1800 MemcachedIPv6: default: false description: Enable IPv6 features in Memcached. @@ -205,6 +209,7 @@ outputs: - {get_param: HorizonSecret} - {get_param: [DefaultPasswords, horizon_secret]} horizon::secure_cookies: {get_param: [HorizonSecureCookies]} + horizon::session_timeout: {get_param: HorizonSessionTimeout} memcached_ipv6: {if: [is_ipv6, true, false]} horizon::servername: str_replace: diff --git a/releasenotes/notes/horizon-session-timeout-ba4a62b5f38cbd11.yaml b/releasenotes/notes/horizon-session-timeout-ba4a62b5f38cbd11.yaml new file mode 100644 index 0000000000..4ba1d5c052 --- /dev/null +++ b/releasenotes/notes/horizon-session-timeout-ba4a62b5f38cbd11.yaml @@ -0,0 +1,7 @@ +--- +features: + - | + Add a Heat parameter `HorizonSessionTimeout` to expose Puppet variable + `horizon::session_timeout`, so operators can configure session timeout + of horizon in seconds. It currently defaults to `1800` seconds. +