Remove deprecated rabbit params
Remove the deprecated rabbit params which has been deprecated for two years. The default_transport_url has been present for a while now and should be used. Change-Id: I9c95be8843e51ac69c95d141507d767aa017afbf
This commit is contained in:
parent
b8bb27afc9
commit
4e6d5bff11
@ -292,37 +292,6 @@
|
|||||||
# take for evaluation.
|
# take for evaluation.
|
||||||
# Defaults to $::os_service_default.
|
# Defaults to $::os_service_default.
|
||||||
#
|
#
|
||||||
# === DEPRECATED PARAMETERS
|
|
||||||
#
|
|
||||||
# [*rabbit_host*]
|
|
||||||
# (Optional) IP or hostname of the rabbit server.
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
# [*rabbit_port*]
|
|
||||||
# (Optional) Port of the rabbit server.
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
# [*rabbit_hosts*]
|
|
||||||
# (Optional) Array of host:port (used with HA queues).
|
|
||||||
# If defined, will remove rabbit_host & rabbit_port parameters from config
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
# [*rabbit_userid*]
|
|
||||||
# (Optional) User to connect to the rabbit server.
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
# [*rabbit_password*]
|
|
||||||
# (Optional) Password to connect to the rabbit_server.
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
# [*rabbit_virtual_host*]
|
|
||||||
# (Optional) Virtual_host to use.
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
# [*rpc_backend*]
|
|
||||||
# (Optional) Use these options to configure the message system.
|
|
||||||
# Defaults to $::os_service_default.
|
|
||||||
#
|
|
||||||
class heat(
|
class heat(
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$debug = undef,
|
$debug = undef,
|
||||||
@ -388,14 +357,6 @@ class heat(
|
|||||||
$auth_strategy = 'keystone',
|
$auth_strategy = 'keystone',
|
||||||
$yaql_memory_quota = $::os_service_default,
|
$yaql_memory_quota = $::os_service_default,
|
||||||
$yaql_limit_iterators = $::os_service_default,
|
$yaql_limit_iterators = $::os_service_default,
|
||||||
# DEPRECATED PARAMETERS
|
|
||||||
$rabbit_host = $::os_service_default,
|
|
||||||
$rabbit_port = $::os_service_default,
|
|
||||||
$rabbit_hosts = $::os_service_default,
|
|
||||||
$rabbit_userid = $::os_service_default,
|
|
||||||
$rabbit_password = $::os_service_default,
|
|
||||||
$rabbit_virtual_host = $::os_service_default,
|
|
||||||
$rpc_backend = $::os_service_default,
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::heat::logging
|
include ::heat::logging
|
||||||
@ -407,19 +368,6 @@ class heat(
|
|||||||
include ::heat::keystone::authtoken
|
include ::heat::keystone::authtoken
|
||||||
}
|
}
|
||||||
|
|
||||||
if !is_service_default($rabbit_host) or
|
|
||||||
!is_service_default($rabbit_hosts) or
|
|
||||||
!is_service_default($rabbit_password) or
|
|
||||||
!is_service_default($rabbit_port) or
|
|
||||||
!is_service_default($rabbit_userid) or
|
|
||||||
!is_service_default($rabbit_virtual_host) or
|
|
||||||
!is_service_default($rpc_backend) {
|
|
||||||
warning("heat::rabbit_host, heat::rabbit_hosts, heat::rabbit_password, \
|
|
||||||
heat::rabbit_port, heat::rabbit_userid, heat::rabbit_virtual_host and \
|
|
||||||
heat::rpc_backend are deprecated. Please use heat::default_transport_url \
|
|
||||||
instead.")
|
|
||||||
}
|
|
||||||
|
|
||||||
package { 'heat-common':
|
package { 'heat-common':
|
||||||
ensure => $package_ensure,
|
ensure => $package_ensure,
|
||||||
name => $::heat::params::common_package_name,
|
name => $::heat::params::common_package_name,
|
||||||
@ -438,16 +386,10 @@ instead.")
|
|||||||
kombu_reconnect_delay => $kombu_reconnect_delay,
|
kombu_reconnect_delay => $kombu_reconnect_delay,
|
||||||
kombu_failover_strategy => $kombu_failover_strategy,
|
kombu_failover_strategy => $kombu_failover_strategy,
|
||||||
kombu_compression => $kombu_compression,
|
kombu_compression => $kombu_compression,
|
||||||
rabbit_userid => $rabbit_userid,
|
|
||||||
rabbit_password => $rabbit_password,
|
|
||||||
rabbit_virtual_host => $rabbit_virtual_host,
|
|
||||||
heartbeat_timeout_threshold => $rabbit_heartbeat_timeout_threshold,
|
heartbeat_timeout_threshold => $rabbit_heartbeat_timeout_threshold,
|
||||||
heartbeat_rate => $rabbit_heartbeat_rate,
|
heartbeat_rate => $rabbit_heartbeat_rate,
|
||||||
rabbit_use_ssl => $rabbit_use_ssl,
|
rabbit_use_ssl => $rabbit_use_ssl,
|
||||||
amqp_durable_queues => $amqp_durable_queues,
|
amqp_durable_queues => $amqp_durable_queues,
|
||||||
rabbit_host => $rabbit_host,
|
|
||||||
rabbit_port => $rabbit_port,
|
|
||||||
rabbit_hosts => $rabbit_hosts,
|
|
||||||
rabbit_ha_queues => $rabbit_ha_queues,
|
rabbit_ha_queues => $rabbit_ha_queues,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The deprecated heat::rabbit_host, heat::rabbit_hosts, heat::rabbit_password,
|
||||||
|
heat::rabbit_port, heat::rabbit_userid and heat::rabbit_virtual_host are now
|
||||||
|
removed. Please use heat::default_transport_url instead.
|
@ -13,11 +13,6 @@ describe 'heat' do
|
|||||||
:debug => 'False',
|
:debug => 'False',
|
||||||
:use_stderr => 'True',
|
:use_stderr => 'True',
|
||||||
:log_dir => '/var/log/heat',
|
:log_dir => '/var/log/heat',
|
||||||
:rabbit_host => '<SERVICE DEFAULT>',
|
|
||||||
:rabbit_port => 5672,
|
|
||||||
:rabbit_userid => '<SERVICE DEFAULT>',
|
|
||||||
:rabbit_password => '<SERVICE DEFAULT>',
|
|
||||||
:rabbit_virtual_host => '<SERVICE DEFAULT>',
|
|
||||||
:database_connection => 'mysql+pymysql://user@host/database',
|
:database_connection => 'mysql+pymysql://user@host/database',
|
||||||
:database_idle_timeout => 3600,
|
:database_idle_timeout => 3600,
|
||||||
:flavor => 'keystone',
|
:flavor => 'keystone',
|
||||||
@ -37,14 +32,13 @@ describe 'heat' do
|
|||||||
|
|
||||||
context 'with rabbit_hosts parameter' do
|
context 'with rabbit_hosts parameter' do
|
||||||
context 'with one server' do
|
context 'with one server' do
|
||||||
before { params.merge!( :rabbit_hosts => ['127.0.0.1:5672'] ) }
|
|
||||||
it_configures 'a heat base installation'
|
it_configures 'a heat base installation'
|
||||||
it_configures 'rabbit without HA support (without backward compatibility)'
|
it_configures 'rabbit without HA support (without backward compatibility)'
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with multiple servers' do
|
context 'with multiple servers' do
|
||||||
before { params.merge!(
|
before { params.merge!(
|
||||||
:rabbit_hosts => ['rabbit1:5672', 'rabbit2:5672'],
|
:rabbit_ha_queues => true,
|
||||||
:amqp_durable_queues => true) }
|
:amqp_durable_queues => true) }
|
||||||
it_configures 'a heat base installation'
|
it_configures 'a heat base installation'
|
||||||
it_configures 'rabbit with HA support'
|
it_configures 'rabbit with HA support'
|
||||||
@ -179,10 +173,6 @@ describe 'heat' do
|
|||||||
|
|
||||||
shared_examples_for 'rabbit without HA support (with backward compatibility)' do
|
shared_examples_for 'rabbit without HA support (with backward compatibility)' do
|
||||||
it 'configures rabbit' do
|
it 'configures rabbit' do
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_userid').with_value( params[:rabbit_userid] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_value( params[:rabbit_password] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_secret( true )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_virtual_host').with_value( params[:rabbit_virtual_host] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
||||||
@ -196,9 +186,6 @@ describe 'heat' do
|
|||||||
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_host').with_value( params[:rabbit_host] ) }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_port').with_value( params[:rabbit_port] ) }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_hosts').with_value('<SERVICE DEFAULT>') }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('<SERVICE DEFAULT>') }
|
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('<SERVICE DEFAULT>') }
|
||||||
it { is_expected.to contain_heat_config('DEFAULT/rpc_response_timeout').with_value('<SERVICE DEFAULT>') }
|
it { is_expected.to contain_heat_config('DEFAULT/rpc_response_timeout').with_value('<SERVICE DEFAULT>') }
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/amqp_durable_queues').with_value('<SERVICE DEFAULT>') }
|
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/amqp_durable_queues').with_value('<SERVICE DEFAULT>') }
|
||||||
@ -206,10 +193,6 @@ describe 'heat' do
|
|||||||
|
|
||||||
shared_examples_for 'rabbit without HA support (without backward compatibility)' do
|
shared_examples_for 'rabbit without HA support (without backward compatibility)' do
|
||||||
it 'configures rabbit' do
|
it 'configures rabbit' do
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_userid').with_value( params[:rabbit_userid] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_secret( true )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_value( params[:rabbit_password] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_virtual_host').with_value( params[:rabbit_virtual_host] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
||||||
@ -223,19 +206,12 @@ describe 'heat' do
|
|||||||
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_host').with_value('<SERVICE DEFAULT>') }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_port').with_value('<SERVICE DEFAULT>') }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_hosts').with_value( params[:rabbit_hosts].join(',') ) }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('<SERVICE DEFAULT>') }
|
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('<SERVICE DEFAULT>') }
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/amqp_durable_queues').with_value('<SERVICE DEFAULT>') }
|
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/amqp_durable_queues').with_value('<SERVICE DEFAULT>') }
|
||||||
end
|
end
|
||||||
|
|
||||||
shared_examples_for 'rabbit with HA support' do
|
shared_examples_for 'rabbit with HA support' do
|
||||||
it 'configures rabbit' do
|
it 'configures rabbit' do
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_userid').with_value( params[:rabbit_userid] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_value( params[:rabbit_password] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_secret( true )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_virtual_host').with_value( params[:rabbit_virtual_host] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
||||||
@ -249,9 +225,6 @@ describe 'heat' do
|
|||||||
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
:kombu_ssl_version => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_host').with_value('<SERVICE DEFAULT>') }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_port').with_value('<SERVICE DEFAULT>') }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_hosts').with_value( params[:rabbit_hosts].join(',') ) }
|
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('true') }
|
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_ha_queues').with_value('true') }
|
||||||
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/amqp_durable_queues').with_value(true) }
|
it { is_expected.to contain_heat_config('oslo_messaging_rabbit/amqp_durable_queues').with_value(true) }
|
||||||
end
|
end
|
||||||
@ -268,10 +241,6 @@ describe 'heat' do
|
|||||||
|
|
||||||
shared_examples_for 'rabbit with heartbeat configured' do
|
shared_examples_for 'rabbit with heartbeat configured' do
|
||||||
it 'configures rabbit' do
|
it 'configures rabbit' do
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_userid').with_value( params[:rabbit_userid] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_value( params[:rabbit_password] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_password').with_secret( true )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/rabbit_virtual_host').with_value( params[:rabbit_virtual_host] )
|
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_reconnect_delay').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_failover_strategy').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_heat_config('oslo_messaging_rabbit/kombu_compression').with_value('<SERVICE DEFAULT>')
|
||||||
|
Loading…
Reference in New Issue
Block a user