Deprecate support for bind_host and bind_port
These two options were removed from heat, due to removal of standalone api services. Depends-on: https://review.opendev.org/954687 Change-Id: Idec68c0126720bff464a63bec593a162a96667fa Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -15,15 +15,6 @@
|
|||||||
# (optional) Whether the service should be managed by Puppet.
|
# (optional) Whether the service should be managed by Puppet.
|
||||||
# Defaults to 'true'.
|
# Defaults to 'true'.
|
||||||
#
|
#
|
||||||
# [*bind_host*]
|
|
||||||
# (Optional) Address to bind the server. Useful when
|
|
||||||
# selecting a particular network interface.
|
|
||||||
# Defaults to $facts['os_service_default'].
|
|
||||||
#
|
|
||||||
# [*bind_port*]
|
|
||||||
# (Optional) The port on which the server will listen.
|
|
||||||
# Defaults to $facts['os_service_default'].
|
|
||||||
#
|
|
||||||
# [*service_name*]
|
# [*service_name*]
|
||||||
# (optional) Name of the service that will be providing the
|
# (optional) Name of the service that will be providing the
|
||||||
# server functionality of heat-api.
|
# server functionality of heat-api.
|
||||||
@@ -35,6 +26,15 @@
|
|||||||
#
|
#
|
||||||
# == Deprecated Parameters
|
# == Deprecated Parameters
|
||||||
#
|
#
|
||||||
|
# [*bind_host*]
|
||||||
|
# (Optional) Address to bind the server. Useful when
|
||||||
|
# selecting a particular network interface.
|
||||||
|
# Defaults to undef.
|
||||||
|
#
|
||||||
|
# [*bind_port*]
|
||||||
|
# (Optional) The port on which the server will listen.
|
||||||
|
# Defaults to undef.
|
||||||
|
#
|
||||||
# [*workers*]
|
# [*workers*]
|
||||||
# (Optional) The number of workers to spawn.
|
# (Optional) The number of workers to spawn.
|
||||||
# Defaults to undef.
|
# Defaults to undef.
|
||||||
@@ -55,10 +55,10 @@ class heat::api (
|
|||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
Boolean $manage_service = true,
|
Boolean $manage_service = true,
|
||||||
Boolean $enabled = true,
|
Boolean $enabled = true,
|
||||||
$bind_host = $facts['os_service_default'],
|
|
||||||
$bind_port = $facts['os_service_default'],
|
|
||||||
$service_name = $::heat::params::api_service_name,
|
$service_name = $::heat::params::api_service_name,
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
|
$bind_host = undef,
|
||||||
|
$bind_port = undef,
|
||||||
$workers = undef,
|
$workers = undef,
|
||||||
$use_ssl = undef,
|
$use_ssl = undef,
|
||||||
$cert_file = undef,
|
$cert_file = undef,
|
||||||
@@ -70,7 +70,10 @@ class heat::api (
|
|||||||
include heat::params
|
include heat::params
|
||||||
include heat::policy
|
include heat::policy
|
||||||
|
|
||||||
['workers', 'use_ssl', 'cert_file', 'key_file'].each |String $opt| {
|
[
|
||||||
|
'bind_host', 'bind_port', 'workers',
|
||||||
|
'use_ssl', 'cert_file', 'key_file'
|
||||||
|
].each |String $opt| {
|
||||||
if getvar($opt) != undef {
|
if getvar($opt) != undef {
|
||||||
warning("The ${opt} parameter is deprecated and has no effect.")
|
warning("The ${opt} parameter is deprecated and has no effect.")
|
||||||
}
|
}
|
||||||
@@ -126,11 +129,8 @@ running as a standalone service, or httpd for being run by a httpd server")
|
|||||||
}
|
}
|
||||||
|
|
||||||
heat_config {
|
heat_config {
|
||||||
'heat_api/bind_host': value => $bind_host;
|
'heat_api/bind_host': ensure => absent;
|
||||||
'heat_api/bind_port': value => $bind_port;
|
'heat_api/bind_port': ensure => absent;
|
||||||
}
|
|
||||||
|
|
||||||
heat_config {
|
|
||||||
'heat_api/workers': ensure => absent;
|
'heat_api/workers': ensure => absent;
|
||||||
'heat_api/cert_file': ensure => absent;
|
'heat_api/cert_file': ensure => absent;
|
||||||
'heat_api/key_file': ensure => absent;
|
'heat_api/key_file': ensure => absent;
|
||||||
|
|||||||
@@ -18,15 +18,6 @@
|
|||||||
# (optional) Whether the service should be managed by Puppet.
|
# (optional) Whether the service should be managed by Puppet.
|
||||||
# Defaults to 'true'.
|
# Defaults to 'true'.
|
||||||
#
|
#
|
||||||
# [*bind_host*]
|
|
||||||
# (Optional) Address to bind the server. Useful when
|
|
||||||
# selecting a particular network interface.
|
|
||||||
# Defaults to $facts['os_service_default'].
|
|
||||||
#
|
|
||||||
# [*bind_port*]
|
|
||||||
# (Optional) The port on which the server will listen.
|
|
||||||
# Defaults to $facts['os_service_default'].
|
|
||||||
#
|
|
||||||
# [*service_name*]
|
# [*service_name*]
|
||||||
# (optional) Name of the service that will be providing the
|
# (optional) Name of the service that will be providing the
|
||||||
# server functionality of heat-api-cfn.
|
# server functionality of heat-api-cfn.
|
||||||
@@ -38,6 +29,15 @@
|
|||||||
#
|
#
|
||||||
# == Deprecated Parameters
|
# == Deprecated Parameters
|
||||||
#
|
#
|
||||||
|
# [*bind_host*]
|
||||||
|
# (Optional) Address to bind the server. Useful when
|
||||||
|
# selecting a particular network interface.
|
||||||
|
# Defaults to undef.
|
||||||
|
#
|
||||||
|
# [*bind_port*]
|
||||||
|
# (Optional) The port on which the server will listen.
|
||||||
|
# Defaults to undef.
|
||||||
|
#
|
||||||
# [*workers*]
|
# [*workers*]
|
||||||
# (Optional) The number of workers to spawn.
|
# (Optional) The number of workers to spawn.
|
||||||
# Defaults to undef.
|
# Defaults to undef.
|
||||||
@@ -58,10 +58,10 @@ class heat::api_cfn (
|
|||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
Boolean $manage_service = true,
|
Boolean $manage_service = true,
|
||||||
Boolean $enabled = true,
|
Boolean $enabled = true,
|
||||||
$bind_host = $facts['os_service_default'],
|
|
||||||
$bind_port = $facts['os_service_default'],
|
|
||||||
$service_name = $::heat::params::api_cfn_service_name,
|
$service_name = $::heat::params::api_cfn_service_name,
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
|
$bind_host = undef,
|
||||||
|
$bind_port = undef,
|
||||||
$workers = undef,
|
$workers = undef,
|
||||||
$use_ssl = undef,
|
$use_ssl = undef,
|
||||||
$cert_file = undef,
|
$cert_file = undef,
|
||||||
@@ -73,7 +73,10 @@ class heat::api_cfn (
|
|||||||
include heat::params
|
include heat::params
|
||||||
include heat::policy
|
include heat::policy
|
||||||
|
|
||||||
['workers', 'use_ssl', 'cert_file', 'key_file'].each |String $opt| {
|
[
|
||||||
|
'bind_host', 'bind_port', 'workers',
|
||||||
|
'use_ssl', 'cert_file', 'key_file'
|
||||||
|
].each |String $opt| {
|
||||||
if getvar($opt) != undef {
|
if getvar($opt) != undef {
|
||||||
warning("The ${opt} parameter is deprecated and has no effect.")
|
warning("The ${opt} parameter is deprecated and has no effect.")
|
||||||
}
|
}
|
||||||
@@ -129,11 +132,8 @@ running as a standalone service, or httpd for being run by a httpd server")
|
|||||||
}
|
}
|
||||||
|
|
||||||
heat_config {
|
heat_config {
|
||||||
'heat_api_cfn/bind_host': value => $bind_host;
|
'heat_api_cfn/bind_host': ensure => absent;
|
||||||
'heat_api_cfn/bind_port': value => $bind_port;
|
'heat_api_cfn/bind_port': ensure => absent;
|
||||||
}
|
|
||||||
|
|
||||||
heat_config {
|
|
||||||
'heat_api_cfn/workers': ensure => absent;
|
'heat_api_cfn/workers': ensure => absent;
|
||||||
'heat_api_cfn/cert_file': ensure => absent;
|
'heat_api_cfn/cert_file': ensure => absent;
|
||||||
'heat_api_cfn/key_file': ensure => absent;
|
'heat_api_cfn/key_file': ensure => absent;
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ deprecations:
|
|||||||
The following parameters of the ``heat::api`` class and
|
The following parameters of the ``heat::api`` class and
|
||||||
the ``heat::api_cfg`` class have been deprecated and has no effect now.
|
the ``heat::api_cfg`` class have been deprecated and has no effect now.
|
||||||
|
|
||||||
|
- ``bind_host``
|
||||||
|
- ``bind_port``
|
||||||
- ``workers``
|
- ``workers``
|
||||||
- ``use_ssl``
|
- ``use_ssl``
|
||||||
- ``cert_file``
|
- ``cert_file``
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ describe 'heat::api_cfn' do
|
|||||||
{
|
{
|
||||||
:enabled => true,
|
:enabled => true,
|
||||||
:manage_service => true,
|
:manage_service => true,
|
||||||
:bind_host => '127.0.0.1',
|
|
||||||
:bind_port => '1234',
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -24,9 +22,8 @@ describe 'heat::api_cfn' do
|
|||||||
it { is_expected.to contain_class('heat::params') }
|
it { is_expected.to contain_class('heat::params') }
|
||||||
it { is_expected.to contain_class('heat::policy') }
|
it { is_expected.to contain_class('heat::policy') }
|
||||||
|
|
||||||
it { is_expected.to contain_heat_config('heat_api_cfn/bind_host').with_value( params[:bind_host] ) }
|
it { is_expected.to contain_heat_config('heat_api_cfn/bind_host').with_ensure('absent') }
|
||||||
it { is_expected.to contain_heat_config('heat_api_cfn/bind_port').with_value( params[:bind_port] ) }
|
it { is_expected.to contain_heat_config('heat_api_cfn/bind_port').with_ensure('absent') }
|
||||||
|
|
||||||
it { is_expected.to contain_heat_config('heat_api_cfn/workers').with_ensure('absent') }
|
it { is_expected.to contain_heat_config('heat_api_cfn/workers').with_ensure('absent') }
|
||||||
it { is_expected.to contain_heat_config('heat_api_cfn/cert_file').with_ensure('absent') }
|
it { is_expected.to contain_heat_config('heat_api_cfn/cert_file').with_ensure('absent') }
|
||||||
it { is_expected.to contain_heat_config('heat_api_cfn/key_file').with_ensure('absent') }
|
it { is_expected.to contain_heat_config('heat_api_cfn/key_file').with_ensure('absent') }
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ describe 'heat::api' do
|
|||||||
{
|
{
|
||||||
:enabled => true,
|
:enabled => true,
|
||||||
:manage_service => true,
|
:manage_service => true,
|
||||||
:bind_host => '127.0.0.1',
|
|
||||||
:bind_port => '1234',
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -24,9 +22,8 @@ describe 'heat::api' do
|
|||||||
it { is_expected.to contain_class('heat::params') }
|
it { is_expected.to contain_class('heat::params') }
|
||||||
it { is_expected.to contain_class('heat::policy') }
|
it { is_expected.to contain_class('heat::policy') }
|
||||||
|
|
||||||
it { is_expected.to contain_heat_config('heat_api/bind_host').with_value( params[:bind_host] ) }
|
it { is_expected.to contain_heat_config('heat_api/bind_host').with_ensure('absent') }
|
||||||
it { is_expected.to contain_heat_config('heat_api/bind_port').with_value( params[:bind_port] ) }
|
it { is_expected.to contain_heat_config('heat_api/bind_port').with_ensure('absent') }
|
||||||
|
|
||||||
it { is_expected.to contain_heat_config('heat_api/workers').with_ensure('absent') }
|
it { is_expected.to contain_heat_config('heat_api/workers').with_ensure('absent') }
|
||||||
it { is_expected.to contain_heat_config('heat_api/cert_file').with_ensure('absent') }
|
it { is_expected.to contain_heat_config('heat_api/cert_file').with_ensure('absent') }
|
||||||
it { is_expected.to contain_heat_config('heat_api/key_file').with_ensure('absent') }
|
it { is_expected.to contain_heat_config('heat_api/key_file').with_ensure('absent') }
|
||||||
|
|||||||
Reference in New Issue
Block a user