diff --git a/manifests/init.pp b/manifests/init.pp index 2f33e39..2346338 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,10 +4,6 @@ # # === Parameters: # -# [*use_ssl*] -# (required) Enable SSL on the API server. -# Defaults to false. -# # [*package_ensure*] # (optional) Whether the watcher api package will be installed # Defaults to 'present' @@ -208,13 +204,17 @@ # in the watcher config. # Defaults to false. # +# DEPRECATED PARAMETERS +# +# [*use_ssl*] +# (optional) Enable SSL on the API server. +# # === Authors # # Daniel Pawlik # class watcher ( Boolean $purge_config = false, - $use_ssl = false, $package_ensure = 'present', $rabbit_login_method = $facts['os_service_default'], $rabbit_retry_interval = $facts['os_service_default'], @@ -258,10 +258,16 @@ class watcher ( $notification_transport_url = $facts['os_service_default'], $notification_driver = $facts['os_service_default'], $notification_topics = $facts['os_service_default'], + # DEPRECATED PARAMETERS + $use_ssl = undef, ) { include openstacklib::openstackclient + if $use_ssl != undef { + warning('The use_ssl parameter is deprecated and will be removed.') + } + include watcher::deps include watcher::params include watcher::policy diff --git a/releasenotes/notes/deprecate-use_ssl-e944756f793be4c8.yaml b/releasenotes/notes/deprecate-use_ssl-e944756f793be4c8.yaml new file mode 100644 index 0000000..f49f74e --- /dev/null +++ b/releasenotes/notes/deprecate-use_ssl-e944756f793be4c8.yaml @@ -0,0 +1,4 @@ +--- +deprecations: + - | + The ``watcher::use_ssl`` parameter has been deprecated.