From 1ccc83a3f518351dc0f57b88952eabf59ab9582f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 22 Aug 2021 18:53:10 +0900 Subject: [PATCH] Remove unused variables in tripleo::profile::base::gnocchi tls_certfile and tls_keyfile is used to set up ssl certs in apache and these variables are not required in the base class but used by the api class. Change-Id: If7ac460ee1783f8816250484611269794fc8fc2f --- manifests/profile/base/gnocchi.pp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/manifests/profile/base/gnocchi.pp b/manifests/profile/base/gnocchi.pp index 341ae2e69..a30e5f3cb 100644 --- a/manifests/profile/base/gnocchi.pp +++ b/manifests/profile/base/gnocchi.pp @@ -42,11 +42,6 @@ # (Required) Password for the gnocchi redis user for the coordination url # Defaults to hiera('gnocchi_redis_password') # -# [*gnocchi_network*] -# (Optional) The network name where the gnocchi endpoint is listening on. -# This is set by t-h-t. -# Defaults to hiera('gnocchi_api_network', undef) -# # [*redis_vip*] # (Required) Redis ip address for the coordination url # Defaults to hiera('redis_vip') @@ -60,7 +55,6 @@ class tripleo::profile::base::gnocchi ( $bootstrap_node = hiera('gnocchi_api_short_bootstrap_node_name', undef), $certificates_specs = hiera('apache_certificates_specs', {}), $enable_internal_tls = hiera('enable_internal_tls', false), - $gnocchi_network = hiera('gnocchi_api_network', undef), $gnocchi_redis_password = hiera('gnocchi_redis_password'), $redis_vip = hiera('redis_vip'), $step = Integer(hiera('step')), @@ -73,15 +67,8 @@ class tripleo::profile::base::gnocchi ( } if $enable_internal_tls { - if !$gnocchi_network { - fail('gnocchi_api_network is not set in the hieradata.') - } - $tls_certfile = $certificates_specs["httpd-${gnocchi_network}"]['service_certificate'] - $tls_keyfile = $certificates_specs["httpd-${gnocchi_network}"]['service_key'] $tls_query_param = '?ssl=true' } else { - $tls_certfile = undef - $tls_keyfile = undef $tls_query_param = '' }