From aac84a5108f83c1dfe656a25c415eb94f0125007 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 18 Aug 2022 20:52:00 +0900 Subject: [PATCH] Remove deprecated watcher::api::watcher_api_* parameters ... because these were deprecated during Yoga cycle[1]. [1] 2a689b750a7842e903f7bd9834f442c11d7b9941 Change-Id: Id4916a8bde771a1d122fa78f19833d5d21c34a1e --- manifests/api.pp | 45 +++---------------- .../cleanup-api-opts-c078c50c79a004c1.yaml | 11 +++++ 2 files changed, 16 insertions(+), 40 deletions(-) create mode 100644 releasenotes/notes/cleanup-api-opts-c078c50c79a004c1.yaml diff --git a/manifests/api.pp b/manifests/api.pp index c3766ac..a863f29 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -85,30 +85,6 @@ # Require validate set at True. # Defaults to undef # -# [*watcher_api_port*] -# (Optional) The port on which the watcher API will listen. -# Defaults to undef. -# -# [*watcher_api_max_limit*] -# (Optional)The maximum number of items returned in a single response from a -# collection resource. -# Defaults to undef. -# -# [*watcher_api_bind_host*] -# (Optional) Listen IP for the watcher API server. -# Defaults to undef. -# -# [*watcher_api_workers*] -# (Optional) Number of worker processors to for the Watcher API service. -# Defaults to undef. -# -# [*watcher_api_enable_ssl_api*] -# (Optional) Enable the integrated stand-alone API to service requests via HTTPS instead -# of HTTP. If there is a front-end service performing HTTPS offloading from the -# service, this option should be False; note, you will want to change public -# API endpoint to represent SSL termination URL with 'public_endpoint' option. -# Defaults to undef. -# # [*watcher_client_auth_uri*] # (Optional) Public Identity API endpoint. # Defaults to undef @@ -180,11 +156,6 @@ class watcher::api ( # DEPRECATED PARAMETERS $validate = undef, $validation_options = undef, - $watcher_api_port = undef, - $watcher_api_max_limit = undef, - $watcher_api_bind_host = undef, - $watcher_api_workers = undef, - $watcher_api_enable_ssl_api = undef, $watcher_client_auth_uri = undef, $watcher_client_default_domain_name = undef, $watcher_client_password = undef, @@ -210,12 +181,6 @@ class watcher::api ( warning('The watcher::api::validation_options parameter has been deprecated and has no effect') } - [ 'port', 'max_limit', 'bind_host', 'workers', 'enable_ssl_api' ].each |String $opt|{ - if getvar("watcher_api_${opt}") != undef { - warning("The watcher_api_${opt} parameter is deprecated. Use the ${opt} parameter.") - } - } - if $auth_strategy == 'keystone' { include watcher::keystone::authtoken } @@ -272,11 +237,11 @@ as a standalone service, or httpd for being run by a httpd server") } watcher_config { - 'api/port': value => pick($watcher_api_port, $port); - 'api/max_limit': value => pick($watcher_api_max_limit, $max_limit); - 'api/host': value => pick($watcher_api_bind_host, $bind_host); - 'api/workers': value => pick($watcher_api_workers, $workers); - 'api/enable_ssl_api': value => pick($watcher_api_enable_ssl_api, $enable_ssl_api); + 'api/port': value => $port; + 'api/max_limit': value => $max_limit; + 'api/host': value => $bind_host; + 'api/workers': value => $workers; + 'api/enable_ssl_api': value => $enable_ssl_api; } if $watcher_client_auth_uri != undef { diff --git a/releasenotes/notes/cleanup-api-opts-c078c50c79a004c1.yaml b/releasenotes/notes/cleanup-api-opts-c078c50c79a004c1.yaml new file mode 100644 index 0000000..fa7b759 --- /dev/null +++ b/releasenotes/notes/cleanup-api-opts-c078c50c79a004c1.yaml @@ -0,0 +1,11 @@ +--- +upgrade: + - | + The following parameters of the ``watcher::api`` class have been removed. + + - ``watcher_api_port`` + - ``watcher_api_max_limit`` + - ``watcher_api_bind_host`` + - ``watcher_api_workers`` + - ``watcher_api_enable_ssl_api`` +