Rabbit IP fix
- replaces apmp hosts list with management_vip address Change-Id: I3a007a25daf100dc1da1fb07cb4e4ad9e124f963
This commit is contained in:
parent
0ae8c7888f
commit
612b931bf9
|
@ -116,12 +116,12 @@ if $telemetry['influxdb_address'] {
|
|||
|
||||
# Rabbit
|
||||
|
||||
$amqp_host = get_network_role_property('management', 'ipaddr')
|
||||
$amqp_port = hiera('amqp_port')
|
||||
$rabbit_info = hiera('rabbit')
|
||||
$rabbit_password = $rabbit_info['password']
|
||||
$rabbit_user = $rabbit_info['user']
|
||||
# remove spaces from host list
|
||||
$amqp_hosts = regsubst(hiera('amqp_hosts'),'\s','','G')
|
||||
$amqp_url = "amqp://${rabbit_user}:${rabbit_password}@${amqp_hosts}/"
|
||||
$amqp_url = "amqp://${rabbit_user}:${rabbit_password}@${amqp_host}:${amqp_port}/"
|
||||
|
||||
$metadata_fields = join(['status deleted container_format min_ram updated_at ',
|
||||
'min_disk is_public size checksum created_at disk_format protected instance_host ',
|
||||
|
|
Loading…
Reference in New Issue