Merge "Ensure all Rabbit params are propagated to interested nodes."

This commit is contained in:
Jenkins 2015-04-01 08:49:39 +00:00 committed by Gerrit Code Review
commit 76a8a88486
7 changed files with 94 additions and 47 deletions

View File

@ -76,6 +76,16 @@ parameters:
RabbitUserName: RabbitUserName:
default: '' default: ''
type: string type: string
RabbitClientUseSSL:
default: false
description: >
Rabbit client subscriber parameter to specify
an SSL connection to the RabbitMQ host.
type: string
RabbitClientPort:
default: 5672
description: Set rabbit subscriber port, change this if using SSL
type: number
SnmpdReadonlyUserName: SnmpdReadonlyUserName:
default: ro_snmp_user default: ro_snmp_user
description: The user name for SNMPd with readonly rights running on all Overcloud nodes description: The user name for SNMPd with readonly rights running on all Overcloud nodes

View File

@ -224,6 +224,16 @@ parameters:
default: guest default: guest
description: The username for RabbitMQ description: The username for RabbitMQ
type: string type: string
RabbitClientUseSSL:
default: false
description: >
Rabbit client subscriber parameter to specify
an SSL connection to the RabbitMQ host.
type: string
RabbitClientPort:
default: 5672
description: Set rabbit subscriber port, change this if using SSL
type: number
SnmpdReadonlyUserName: SnmpdReadonlyUserName:
default: ro_snmp_user default: ro_snmp_user
description: The user name for SNMPd with readonly rights running on all Overcloud nodes description: The user name for SNMPd with readonly rights running on all Overcloud nodes

View File

@ -183,6 +183,7 @@ parameters:
type: string type: string
default: unset default: unset
description: Salt for the rabbit cookie, change this to force the randomly generated rabbit cookie to change. description: Salt for the rabbit cookie, change this to force the randomly generated rabbit cookie to change.
# FIXME: 'guest' is provisioned in RabbitMQ by default, we should create a user if these are changed
RabbitUserName: RabbitUserName:
default: guest default: guest
description: The username for RabbitMQ description: The username for RabbitMQ
@ -571,8 +572,8 @@ resources:
NovaPassword: {get_param: NovaPassword} NovaPassword: {get_param: NovaPassword}
NtpServer: {get_param: NtpServer} NtpServer: {get_param: NtpServer}
PublicVirtualInterface: {get_param: PublicVirtualInterface} PublicVirtualInterface: {get_param: PublicVirtualInterface}
RabbitUserName: {get_param: RabbitUserName}
RabbitPassword: {get_param: RabbitPassword} RabbitPassword: {get_param: RabbitPassword}
RabbitUserName: {get_param: RabbitUserName}
RabbitCookie: {get_attr: [RabbitCookie, value]} RabbitCookie: {get_attr: [RabbitCookie, value]}
RabbitClientUseSSL: {get_param: RabbitClientUseSSL} RabbitClientUseSSL: {get_param: RabbitClientUseSSL}
RabbitClientPort: {get_param: RabbitClientPort} RabbitClientPort: {get_param: RabbitClientPort}
@ -639,6 +640,8 @@ resources:
RabbitHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]} RabbitHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
RabbitPassword: {get_param: RabbitPassword} RabbitPassword: {get_param: RabbitPassword}
RabbitUserName: {get_param: RabbitUserName} RabbitUserName: {get_param: RabbitUserName}
RabbitClientUseSSL: {get_param: RabbitClientUseSSL}
RabbitClientPort: {get_param: RabbitClientPort}
SnmpdReadonlyUserName: {get_param: SnmpdReadonlyUserName} SnmpdReadonlyUserName: {get_param: SnmpdReadonlyUserName}
SnmpdReadonlyUserPassword: {get_param: SnmpdReadonlyUserPassword} SnmpdReadonlyUserPassword: {get_param: SnmpdReadonlyUserPassword}
@ -659,6 +662,8 @@ resources:
Flavor: {get_param: OvercloudBlockStorageFlavor} Flavor: {get_param: OvercloudBlockStorageFlavor}
RabbitPassword: {get_param: RabbitPassword} RabbitPassword: {get_param: RabbitPassword}
RabbitUserName: {get_param: RabbitUserName} RabbitUserName: {get_param: RabbitUserName}
RabbitClientUseSSL: {get_param: RabbitClientUseSSL}
RabbitClientPort: {get_param: RabbitClientPort}
NtpServer: {get_param: NtpServer} NtpServer: {get_param: NtpServer}
ObjectStorage: ObjectStorage:

View File

@ -76,6 +76,16 @@ parameters:
RabbitUserName: RabbitUserName:
default: '' default: ''
type: string type: string
RabbitClientUseSSL:
default: false
description: >
Rabbit client subscriber parameter to specify
an SSL connection to the RabbitMQ host.
type: string
RabbitClientPort:
default: 5672
description: Set rabbit subscriber port, change this if using SSL
type: number
SnmpdReadonlyUserName: SnmpdReadonlyUserName:
default: ro_snmp_user default: ro_snmp_user
description: The user name for SNMPd with readonly rights running on all Overcloud nodes description: The user name for SNMPd with readonly rights running on all Overcloud nodes
@ -128,6 +138,8 @@ resources:
host: {get_param: VirtualIP} host: {get_param: VirtualIP}
rabbit_username: {get_param: RabbitUserName} rabbit_username: {get_param: RabbitUserName}
rabbit_password: {get_param: RabbitPassword} rabbit_password: {get_param: RabbitPassword}
rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
rabbit_client_port: {get_param: RabbitClientPort}
ntp_servers: ntp_servers:
str_replace: str_replace:
template: '["server"]' template: '["server"]'
@ -162,6 +174,8 @@ resources:
cinder::rabbit_hosts: {get_input: rabbit_hosts} cinder::rabbit_hosts: {get_input: rabbit_hosts}
cinder::rabbit_userid: {get_input: rabbit_username} cinder::rabbit_userid: {get_input: rabbit_username}
cinder::rabbit_password: {get_input: rabbit_password} cinder::rabbit_password: {get_input: rabbit_password}
cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
cinder::rabbit_port: {get_input: rabbit_client_port}
cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend} cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
ntp::servers: {get_input: ntp_servers} ntp::servers: {get_input: ntp_servers}
enable_package_install: {get_input: enable_package_install} enable_package_install: {get_input: enable_package_install}

View File

@ -224,6 +224,16 @@ parameters:
default: guest default: guest
description: The username for RabbitMQ description: The username for RabbitMQ
type: string type: string
RabbitClientUseSSL:
default: false
description: >
Rabbit client subscriber parameter to specify
an SSL connection to the RabbitMQ host.
type: string
RabbitClientPort:
default: 5672
description: Set rabbit subscriber port, change this if using SSL
type: number
SnmpdReadonlyUserName: SnmpdReadonlyUserName:
default: ro_snmp_user default: ro_snmp_user
description: The user name for SNMPd with readonly rights running on all Overcloud nodes description: The user name for SNMPd with readonly rights running on all Overcloud nodes
@ -289,6 +299,11 @@ resources:
nova::compute::vncserver_proxyclient_address: local-ipv4 nova::compute::vncserver_proxyclient_address: local-ipv4
mapped_data: mapped_data:
#nova::debug: {get_input: debug} #nova::debug: {get_input: debug}
nova::rabbit_hosts: {get_input: rabbit_hosts}
nova::rabbit_userid: {get_input: rabbit_username}
nova::rabbit_password: {get_input: rabbit_password}
nova::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
nova::rabbit_port: {get_input: rabbit_client_port}
nova_compute_driver: {get_input: nova_compute_driver} nova_compute_driver: {get_input: nova_compute_driver}
nova::compute::libvirt::libvirt_virt_type: {get_input: nova_compute_libvirt_type} nova::compute::libvirt::libvirt_virt_type: {get_input: nova_compute_libvirt_type}
nova_api_host: {get_input: nova_api_host} nova_api_host: {get_input: nova_api_host}
@ -296,6 +311,11 @@ resources:
nova_enable_rbd_backend: {get_input: nova_enable_rbd_backend} nova_enable_rbd_backend: {get_input: nova_enable_rbd_backend}
nova_password: {get_input: nova_password} nova_password: {get_input: nova_password}
#ceilometer::debug: {get_input: debug} #ceilometer::debug: {get_input: debug}
ceilometer::rabbit_hosts: {get_input: rabbit_hosts}
ceilometer::rabbit_userid: {get_input: rabbit_username}
ceilometer::rabbit_password: {get_input: rabbit_password}
ceilometer::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
ceilometer::rabbit_port: {get_input: rabbit_client_port}
ceilometer::metering_secret: {get_input: ceilometer_metering_secret} ceilometer::metering_secret: {get_input: ceilometer_metering_secret}
ceilometer::agent::auth::auth_password: {get_input: ceilometer_password} ceilometer::agent::auth::auth_password: {get_input: ceilometer_password}
ceilometer::agent::auth::auth_url: {get_input: ceilometer_agent_auth_url} ceilometer::agent::auth::auth_url: {get_input: ceilometer_agent_auth_url}
@ -304,6 +324,11 @@ resources:
snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password} snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
nova::glance_api_servers: {get_input: glance_api_servers} nova::glance_api_servers: {get_input: glance_api_servers}
#neutron::debug: {get_input: debug} #neutron::debug: {get_input: debug}
neutron::rabbit_hosts: {get_input: rabbit_hosts}
neutron::rabbit_password: {get_input: rabbit_password}
neutron::rabbit_user: {get_input: rabbit_user}
neutron::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
neutron::rabbit_port: {get_input: rabbit_client_port}
neutron_flat_networks: {get_input: neutron_flat_networks} neutron_flat_networks: {get_input: neutron_flat_networks}
neutron_host: {get_input: neutron_host} neutron_host: {get_input: neutron_host}
neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip} neutron::agents::ml2::ovs::local_ip: {get_input: neutron_local_ip}
@ -323,15 +348,6 @@ resources:
neutron_mechanism_drivers: {get_input: neutron_mechanism_drivers} neutron_mechanism_drivers: {get_input: neutron_mechanism_drivers}
neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device} neutron_public_interface_raw_device: {get_input: neutron_public_interface_raw_device}
admin_password: {get_input: admin_password} admin_password: {get_input: admin_password}
nova::rabbit_host: {get_input: rabbit_host}
neutron::rabbit_host: {get_input: rabbit_host}
ceilometer::rabbit_host: {get_input: rabbit_host}
nova::rabbit_userid: {get_input: rabbit_username}
neutron::rabbit_user: {get_input: rabbit_username}
ceilometer::rabbit_userid: {get_input: rabbit_username}
nova::rabbit_password: {get_input: rabbit_password}
neutron::rabbit_password: {get_input: rabbit_password}
ceilometer::rabbit_password: {get_input: rabbit_password}
ntp::servers: {get_input: ntp_servers} ntp::servers: {get_input: ntp_servers}
enable_package_install: {get_input: enable_package_install} enable_package_install: {get_input: enable_package_install}
@ -397,9 +413,15 @@ resources:
- {get_param: NeutronHost} - {get_param: NeutronHost}
- ':35357/v2.0' - ':35357/v2.0'
admin_password: {get_param: AdminPassword} admin_password: {get_param: AdminPassword}
rabbit_host: {get_param: RabbitHost} rabbit_hosts:
str_replace:
template: '["host"]'
params:
host: {get_param: RabbitHost}
rabbit_username: {get_param: RabbitUserName} rabbit_username: {get_param: RabbitUserName}
rabbit_password: {get_param: RabbitPassword} rabbit_password: {get_param: RabbitPassword}
rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
rabbit_client_port: {get_param: RabbitClientPort}
ntp_servers: ntp_servers:
str_replace: str_replace:
template: '["server"]' template: '["server"]'

View File

@ -566,6 +566,11 @@ resources:
- - 'mysql://nova:unset@' - - 'mysql://nova:unset@'
- {get_param: VirtualIP} - {get_param: VirtualIP}
- '/nova' - '/nova'
rabbit_hosts:
str_replace:
template: '["host"]'
params:
host: {get_param: VirtualIP}
rabbit_username: {get_param: RabbitUserName} rabbit_username: {get_param: RabbitUserName}
rabbit_password: {get_param: RabbitPassword} rabbit_password: {get_param: RabbitPassword}
rabbit_cookie: {get_param: RabbitCookie} rabbit_cookie: {get_param: RabbitCookie}
@ -642,8 +647,11 @@ resources:
cinder::api::auth_uri: {get_input: keystone_auth_uri} cinder::api::auth_uri: {get_input: keystone_auth_uri}
cinder::api::identity_uri: {get_input: keystone_identity_uri} cinder::api::identity_uri: {get_input: keystone_identity_uri}
cinder::api::bind_host: {get_input: controller_host} cinder::api::bind_host: {get_input: controller_host}
cinder::rabbit_hosts: {get_input: rabbit_hosts}
cinder::rabbit_userid: {get_input: rabbit_username} cinder::rabbit_userid: {get_input: rabbit_username}
cinder::rabbit_password: {get_input: rabbit_password} cinder::rabbit_password: {get_input: rabbit_password}
cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
cinder::rabbit_port: {get_input: rabbit_client_port}
cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend} cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
#cinder::debug: {get_input: debug} #cinder::debug: {get_input: debug}
# Glance # Glance
@ -674,9 +682,11 @@ resources:
heat::engine::heat_metadata_server_url: {get_input: heat.metadata_server_url} heat::engine::heat_metadata_server_url: {get_input: heat.metadata_server_url}
heat::engine::heat_waitcondition_server_url: {get_input: heat.waitcondition_server_url} heat::engine::heat_waitcondition_server_url: {get_input: heat.waitcondition_server_url}
heat::engine::auth_encryption_key: {get_input: heat_auth_encryption_key} heat::engine::auth_encryption_key: {get_input: heat_auth_encryption_key}
heat::rabbit_hosts: {get_input: rabbit_hosts}
heat::rabbit_userid: {get_input: rabbit_username} heat::rabbit_userid: {get_input: rabbit_username}
heat::rabbit_password: {get_input: rabbit_password} heat::rabbit_password: {get_input: rabbit_password}
heat::rabbit_host: {get_input: controller_virtual_ip} heat::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
heat::rabbit_port: {get_input: rabbit_client_port}
heat::auth_uri: {get_input: keystone_auth_uri} heat::auth_uri: {get_input: keystone_auth_uri}
heat::identity_uri: {get_input: keystone_identity_uri} heat::identity_uri: {get_input: keystone_identity_uri}
heat::keystone_password: {get_input: heat_password} heat::keystone_password: {get_input: heat_password}
@ -704,8 +714,11 @@ resources:
mysql_cluster_name: {get_input: mysql_cluster_name} mysql_cluster_name: {get_input: mysql_cluster_name}
# Neutron # Neutron
neutron::bind_host: {get_input: controller_host} neutron::bind_host: {get_input: controller_host}
neutron::rabbit_hosts: {get_input: rabbit_hosts}
neutron::rabbit_password: {get_input: rabbit_password} neutron::rabbit_password: {get_input: rabbit_password}
neutron::rabbit_user: {get_input: rabbit_user} neutron::rabbit_user: {get_input: rabbit_user}
neutron::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
neutron::rabbit_port: {get_input: rabbit_client_port}
#neutron::debug: {get_input: debug} #neutron::debug: {get_input: debug}
neutron::server::auth_uri: {get_input: keystone_auth_uri} neutron::server::auth_uri: {get_input: keystone_auth_uri}
neutron::server::identity_uri: {get_input: keystone_identity_uri} neutron::server::identity_uri: {get_input: keystone_identity_uri}
@ -734,9 +747,11 @@ resources:
neutron_dsn: {get_input: neutron_dsn} neutron_dsn: {get_input: neutron_dsn}
# Ceilometer # Ceilometer
ceilometer::metering_secret: {get_input: ceilometer_metering_secret} ceilometer::metering_secret: {get_input: ceilometer_metering_secret}
ceilometer::rabbit_hosts: {get_input: rabbit_hosts}
ceilometer::rabbit_userid: {get_input: rabbit_username} ceilometer::rabbit_userid: {get_input: rabbit_username}
ceilometer::rabbit_password: {get_input: rabbit_password} ceilometer::rabbit_password: {get_input: rabbit_password}
ceilometer::rabbit_host: {get_input: controller_virtual_ip} ceilometer::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
ceilometer::rabbit_port: {get_input: rabbit_client_port}
ceilometer::api::host: {get_input: controller_host} ceilometer::api::host: {get_input: controller_host}
ceilometer::api::keystone_password: {get_input: ceilometer_password} ceilometer::api::keystone_password: {get_input: ceilometer_password}
ceilometer::api::keystone_auth_uri: {get_input: keystone_auth_uri} ceilometer::api::keystone_auth_uri: {get_input: keystone_auth_uri}
@ -746,8 +761,11 @@ resources:
snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name} snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password} snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
# Nova # Nova
nova::rabbit_hosts: {get_input: rabbit_hosts}
nova::rabbit_userid: {get_input: rabbit_username} nova::rabbit_userid: {get_input: rabbit_username}
nova::rabbit_password: {get_input: rabbit_password} nova::rabbit_password: {get_input: rabbit_password}
nova::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
nova::rabbit_port: {get_input: rabbit_client_port}
nova::api::auth_uri: {get_input: keystone_auth_uri} nova::api::auth_uri: {get_input: keystone_auth_uri}
nova::api::identity_uri: {get_input: keystone_identity_uri} nova::api::identity_uri: {get_input: keystone_identity_uri}
nova::api::api_bind_address: {get_input: controller_host} nova::api::api_bind_address: {get_input: controller_host}
@ -758,12 +776,7 @@ resources:
nova::network::neutron::neutron_admin_password: {get_input: neutron_password} nova::network::neutron::neutron_admin_password: {get_input: neutron_password}
nova::network::neutron::neutron_url: {get_input: neutron_url} nova::network::neutron::neutron_url: {get_input: neutron_url}
nova::network::neutron::neutron_admin_auth_url: {get_input: neutron_admin_auth_url} nova::network::neutron::neutron_admin_auth_url: {get_input: neutron_admin_auth_url}
# Rabbit # Rabbit
rabbit_username: {get_input: rabbit_username}
rabbit_password: {get_input: rabbit_password}
rabbit_client_use_ssl: {get_input: rabbit_client_use_ssl}
rabbit_client_port: {get_input: rabbit_client_port}
rabbitmq::erlang_cookie: {get_input: rabbit_cookie} rabbitmq::erlang_cookie: {get_input: rabbit_cookie}
# Misc # Misc
neutron_public_interface_ip: {get_input: neutron_public_interface_ip} neutron_public_interface_ip: {get_input: neutron_public_interface_ip}

View File

@ -132,29 +132,9 @@ if hiera('step') >= 2 {
cluster_nodes => $rabbit_nodes, cluster_nodes => $rabbit_nodes,
node_ip_address => hiera('controller_host'), node_ip_address => hiera('controller_host'),
} }
rabbitmq_vhost { '/': rabbitmq_vhost { '/':
provider => 'rabbitmqctl', provider => 'rabbitmqctl',
} }
rabbitmq_user { ['nova','glance','neutron','cinder','ceilometer','heat']:
admin => true,
password => hiera('rabbit_password'),
provider => 'rabbitmqctl',
}
rabbitmq_user_permissions {[
'nova@/',
'glance@/',
'neutron@/',
'cinder@/',
'ceilometer@/',
'heat@/',
]:
configure_permission => '.*',
write_permission => '.*',
read_permission => '.*',
provider => 'rabbitmqctl',
}
# pre-install swift here so we can build rings # pre-install swift here so we can build rings
include ::swift include ::swift
@ -223,7 +203,6 @@ if hiera('step') >= 3 {
include ::glance::backend::swift include ::glance::backend::swift
class { 'nova': class { 'nova':
rabbit_hosts => [hiera('controller_virtual_ip')],
glance_api_servers => join([hiera('glance_protocol'), '://', hiera('controller_virtual_ip'), ':', hiera('glance_port')]), glance_api_servers => join([hiera('glance_protocol'), '://', hiera('controller_virtual_ip'), ':', hiera('glance_port')]),
} }
@ -235,10 +214,7 @@ if hiera('step') >= 3 {
include ::nova::vncproxy include ::nova::vncproxy
include ::nova::scheduler include ::nova::scheduler
class {'neutron': include ::neutron
rabbit_hosts => [hiera('controller_virtual_ip')],
}
include ::neutron::server include ::neutron::server
include ::neutron::agents::dhcp include ::neutron::agents::dhcp
include ::neutron::agents::l3 include ::neutron::agents::l3
@ -271,10 +247,7 @@ if hiera('step') >= 3 {
Service['neutron-server'] -> Service['neutron-ovs-agent-service'] Service['neutron-server'] -> Service['neutron-ovs-agent-service']
Service['neutron-server'] -> Service['neutron-metadata'] Service['neutron-server'] -> Service['neutron-metadata']
class {'cinder': include ::cinder
rabbit_hosts => [hiera('controller_virtual_ip')],
}
include ::cinder::api include ::cinder::api
include ::cinder::glance include ::cinder::glance
include ::cinder::scheduler include ::cinder::scheduler