Support separate oslo.messaging services for RPC and Notification
This commit introduces oslo.messaging services in place of a single rabbitmq server. This will enable the separation of rpc and notifications for the continued use of a single backend (e.g. rabbitmq server) or a dual backend for the messaging communications. This patch: * add oslo_messaging_rpc and oslo_messaging_notify services * add puppet services for rpc and notification (rabbitmq and qdrouterd servers) * add docker services to deploy rpc (rabbitmq or qdrouterd) and notify (rabbitmq or shared) * retains rabbit parameters for core services * update resource registries, service_net_map, roles, etc. * update ci environment container scenarios * add environment generator for messaging * add release note Depends-On: Ic2c1a58526febefc1703da5fec12ff68dcc0efa0 Depends-On: I154e2fe6f66b296b9b643627d57696e5178e1815 Depends-On: I03e99d35ed043cf11bea9b7462058bd80f4d99da Needed-By: Ie181a92731e254b7f613ad25fee6cc37e985c315 Change-Id: I934561612d26befd88a9053262836b47bdf4efb0
This commit is contained in:
parent
4fa675c292
commit
78bc457585
|
@ -2,7 +2,8 @@ resource_registry:
|
||||||
OS::TripleO::Controller::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
OS::TripleO::Controller::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
||||||
OS::TripleO::ControllerApi::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
OS::TripleO::ControllerApi::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
||||||
OS::TripleO::Services::Core: multinode-core.yaml
|
OS::TripleO::Services::Core: multinode-core.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
||||||
|
|
|
@ -67,7 +67,8 @@
|
||||||
- OS::TripleO::Services::Kernel
|
- OS::TripleO::Services::Kernel
|
||||||
- OS::TripleO::Services::MySQL
|
- OS::TripleO::Services::MySQL
|
||||||
- OS::TripleO::Services::MySQLClient
|
- OS::TripleO::Services::MySQLClient
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
resource_registry:
|
resource_registry:
|
||||||
OS::TripleO::Controller::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
OS::TripleO::Controller::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
||||||
OS::TripleO::Compute::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
OS::TripleO::Compute::Net::SoftwareConfig: ../common/net-config-multinode-os-net-config.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
||||||
|
@ -31,7 +32,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NeutronServer
|
- OS::TripleO::Services::NeutronServer
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronOvsAgent
|
- OS::TripleO::Services::NeutronOvsAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -25,8 +25,9 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NovaPlacement
|
- OS::TripleO::Services::NovaPlacement
|
||||||
- OS::TripleO::Services::NovaScheduler
|
- OS::TripleO::Services::NovaScheduler
|
||||||
- OS::TripleO::Services::Ntp
|
- OS::TripleO::Services::Ntp
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::RabbitMQ
|
|
||||||
- OS::TripleO::Services::Sshd
|
- OS::TripleO::Services::Sshd
|
||||||
- OS::TripleO::Services::SwiftProxy
|
- OS::TripleO::Services::SwiftProxy
|
||||||
- OS::TripleO::Services::SwiftDispersion
|
- OS::TripleO::Services::SwiftDispersion
|
||||||
|
|
|
@ -5,7 +5,8 @@ resource_registry:
|
||||||
# Since the OVB jobs also test this functionality we can shut it off here.
|
# Since the OVB jobs also test this functionality we can shut it off here.
|
||||||
OS::TripleO::AllNodes::Validation: ../common/all-nodes-validation-disabled.yaml
|
OS::TripleO::AllNodes::Validation: ../common/all-nodes-validation-disabled.yaml
|
||||||
|
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
||||||
|
@ -24,7 +25,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::Keystone
|
- OS::TripleO::Services::Keystone
|
||||||
- OS::TripleO::Services::MySQL
|
- OS::TripleO::Services::MySQL
|
||||||
- OS::TripleO::Services::MySQLClient
|
- OS::TripleO::Services::MySQLClient
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -7,7 +7,8 @@ resource_registry:
|
||||||
OS::TripleO::Services::CephClient: ../../docker/services/ceph-ansible/ceph-client.yaml
|
OS::TripleO::Services::CephClient: ../../docker/services/ceph-ansible/ceph-client.yaml
|
||||||
OS::TripleO::Services::PankoApi: ../../docker/services/panko-api.yaml
|
OS::TripleO::Services::PankoApi: ../../docker/services/panko-api.yaml
|
||||||
OS::TripleO::Services::Collectd: ../../docker/services/collectd.yaml
|
OS::TripleO::Services::Collectd: ../../docker/services/collectd.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
||||||
|
@ -47,7 +48,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NeutronServer
|
- OS::TripleO::Services::NeutronServer
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronOvsAgent
|
- OS::TripleO::Services::NeutronOvsAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -5,7 +5,8 @@ resource_registry:
|
||||||
OS::TripleO::Services::Zaqar: ../../docker/services/zaqar.yaml
|
OS::TripleO::Services::Zaqar: ../../docker/services/zaqar.yaml
|
||||||
OS::TripleO::Services::Ec2Api: ../../docker/services/ec2-api.yaml
|
OS::TripleO::Services::Ec2Api: ../../docker/services/ec2-api.yaml
|
||||||
OS::TripleO::Services::PankoApi: ../../docker/services/panko-api.yaml
|
OS::TripleO::Services::PankoApi: ../../docker/services/panko-api.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::Redis: ../../docker/services/pacemaker/database/redis.yaml
|
OS::TripleO::Services::Redis: ../../docker/services/pacemaker/database/redis.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
|
@ -42,7 +43,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NeutronServer
|
- OS::TripleO::Services::NeutronServer
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronOvsAgent
|
- OS::TripleO::Services::NeutronOvsAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -7,7 +7,8 @@ resource_registry:
|
||||||
OS::TripleO::Services::MistralEngine: ../../docker/services/mistral-engine.yaml
|
OS::TripleO::Services::MistralEngine: ../../docker/services/mistral-engine.yaml
|
||||||
OS::TripleO::Services::MistralExecutor: ../../docker/services/mistral-executor.yaml
|
OS::TripleO::Services::MistralExecutor: ../../docker/services/mistral-executor.yaml
|
||||||
OS::TripleO::Services::MistralEventEngine: ../../docker/services/mistral-event-engine.yaml
|
OS::TripleO::Services::MistralEventEngine: ../../docker/services/mistral-event-engine.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
||||||
|
@ -36,7 +37,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NeutronServer
|
- OS::TripleO::Services::NeutronServer
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronOvsAgent
|
- OS::TripleO::Services::NeutronOvsAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -24,7 +24,8 @@ resource_registry:
|
||||||
OS::TripleO::Tasks::ControllerPreConfig: OS::Heat::None
|
OS::TripleO::Tasks::ControllerPreConfig: OS::Heat::None
|
||||||
OS::TripleO::Tasks::ControllerPostConfig: OS::Heat::None
|
OS::TripleO::Tasks::ControllerPostConfig: OS::Heat::None
|
||||||
OS::TripleO::Tasks::ControllerPostPuppetRestart: ../../extraconfig/tasks/post_puppet_pacemaker_restart.yaml
|
OS::TripleO::Tasks::ControllerPostPuppetRestart: ../../extraconfig/tasks/post_puppet_pacemaker_restart.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../../puppet/services/pacemaker.yaml
|
||||||
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
OS::TripleO::Services::PacemakerRemote: ../../puppet/services/pacemaker_remote.yaml
|
||||||
|
@ -58,7 +59,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NeutronServer
|
- OS::TripleO::Services::NeutronServer
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronOvsAgent
|
- OS::TripleO::Services::NeutronOvsAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::ManilaApi
|
- OS::TripleO::Services::ManilaApi
|
||||||
|
|
|
@ -24,7 +24,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::NeutronServer
|
- OS::TripleO::Services::NeutronServer
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronOvsAgent
|
- OS::TripleO::Services::NeutronOvsAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -34,7 +34,8 @@ parameter_defaults:
|
||||||
- OS::TripleO::Services::OVNDBs
|
- OS::TripleO::Services::OVNDBs
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::OVNMetadataAgent
|
- OS::TripleO::Services::OVNMetadataAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::HAproxy
|
- OS::TripleO::Services::HAproxy
|
||||||
- OS::TripleO::Services::Keepalived
|
- OS::TripleO::Services::Keepalived
|
||||||
- OS::TripleO::Services::Memcached
|
- OS::TripleO::Services::Memcached
|
||||||
|
|
|
@ -133,11 +133,12 @@
|
||||||
- OS::TripleO::Services::OctaviaWorker
|
- OS::TripleO::Services::OctaviaWorker
|
||||||
- OS::TripleO::Services::OpenDaylightApi
|
- OS::TripleO::Services::OpenDaylightApi
|
||||||
- OS::TripleO::Services::OpenDaylightOvs
|
- OS::TripleO::Services::OpenDaylightOvs
|
||||||
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::OVNDBs
|
- OS::TripleO::Services::OVNDBs
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::PankoApi
|
- OS::TripleO::Services::PankoApi
|
||||||
- OS::TripleO::Services::RabbitMQ
|
|
||||||
- OS::TripleO::Services::Redis
|
- OS::TripleO::Services::Redis
|
||||||
- OS::TripleO::Services::SaharaApi
|
- OS::TripleO::Services::SaharaApi
|
||||||
- OS::TripleO::Services::SaharaEngine
|
- OS::TripleO::Services::SaharaEngine
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Oslo Notify using a shared OpenStack containerized Rabbitmq service
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ../containers-common.yaml
|
||||||
|
|
||||||
|
RabbitmqBase:
|
||||||
|
type: ../../../puppet/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
|
properties:
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the oslo messaging notify role.
|
||||||
|
value:
|
||||||
|
service_name: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
|
@ -0,0 +1,260 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
OpenStack containerized Rabbitmq service
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
DockerRabbitmqImage:
|
||||||
|
description: image
|
||||||
|
type: string
|
||||||
|
DockerRabbitmqConfigImage:
|
||||||
|
description: The container image to use for the rabbitmq config_volume
|
||||||
|
type: string
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
RabbitCookie:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
hidden: true
|
||||||
|
EnableInternalTLS:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
InternalTLSCAFile:
|
||||||
|
default: '/etc/ipa/ca.crt'
|
||||||
|
type: string
|
||||||
|
description: Specifies the default CA cert to use if TLS is used for
|
||||||
|
services in the internal network.
|
||||||
|
UndercloudUpgrade:
|
||||||
|
type: boolean
|
||||||
|
description: Flag to indicate undercloud upgrade process is being run.
|
||||||
|
default: false
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ../containers-common.yaml
|
||||||
|
|
||||||
|
RabbitmqBase:
|
||||||
|
type: ../../../puppet/services/messaging/notify-rabbitmq.yaml
|
||||||
|
properties:
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the Rabbitmq API role.
|
||||||
|
value:
|
||||||
|
service_name: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
# RabbitMQ plugins initialization occurs on every node
|
||||||
|
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- {get_attr: [RabbitmqBase, role_data, config_settings]}
|
||||||
|
- rabbitmq::admin_enable: false
|
||||||
|
- if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
- tripleo::certmonger::rabbitmq::postsave_cmd: "true" # TODO: restart the rabbitmq container here
|
||||||
|
- {}
|
||||||
|
logging_source: {get_attr: [RabbitmqBase, role_data, logging_source]}
|
||||||
|
logging_groups: {get_attr: [RabbitmqBase, role_data, logging_groups]}
|
||||||
|
service_config_settings: {get_attr: [RabbitmqBase, role_data, service_config_settings]}
|
||||||
|
# BEGIN DOCKER SETTINGS
|
||||||
|
puppet_config:
|
||||||
|
config_volume: rabbitmq
|
||||||
|
step_config:
|
||||||
|
list_join:
|
||||||
|
- "\n"
|
||||||
|
- - "['Rabbitmq_policy', 'Rabbitmq_user'].each |String $val| { noop_resource($val) }"
|
||||||
|
- get_attr: [RabbitmqBase, role_data, step_config]
|
||||||
|
config_image: &rabbitmq_config_image {get_param: DockerRabbitmqConfigImage}
|
||||||
|
kolla_config:
|
||||||
|
/var/lib/kolla/config_files/rabbitmq.json:
|
||||||
|
command: /usr/lib/rabbitmq/bin/rabbitmq-server
|
||||||
|
config_files:
|
||||||
|
- source: "/var/lib/kolla/config_files/src/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
- source: "/var/lib/kolla/config_files/src-tls/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
optional: true
|
||||||
|
permissions:
|
||||||
|
- path: /var/lib/rabbitmq
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
recurse: true
|
||||||
|
- path: /etc/pki/tls/certs/rabbitmq.crt
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
optional: true
|
||||||
|
- path: /etc/pki/tls/private/rabbitmq.key
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
optional: true
|
||||||
|
docker_config:
|
||||||
|
# Kolla_bootstrap runs before permissions set by kolla_config
|
||||||
|
step_1:
|
||||||
|
rabbitmq_init_logs:
|
||||||
|
start_order: 0
|
||||||
|
detach: false
|
||||||
|
image: &rabbitmq_image {get_param: DockerRabbitmqImage}
|
||||||
|
privileged: false
|
||||||
|
user: root
|
||||||
|
volumes:
|
||||||
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
|
command: ['/bin/bash', '-c', 'chown -R rabbitmq:rabbitmq /var/log/rabbitmq']
|
||||||
|
rabbitmq_bootstrap:
|
||||||
|
start_order: 1
|
||||||
|
detach: false
|
||||||
|
image: *rabbitmq_image
|
||||||
|
net: host
|
||||||
|
privileged: false
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
-
|
||||||
|
- /var/lib/kolla/config_files/rabbitmq.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq
|
||||||
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
|
- if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
-
|
||||||
|
- list_join:
|
||||||
|
- ':'
|
||||||
|
- - {get_param: InternalTLSCAFile}
|
||||||
|
- {get_param: InternalTLSCAFile}
|
||||||
|
- 'ro'
|
||||||
|
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
||||||
|
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
||||||
|
- null
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
- KOLLA_BOOTSTRAP=True
|
||||||
|
-
|
||||||
|
list_join:
|
||||||
|
- '='
|
||||||
|
- - 'RABBITMQ_CLUSTER_COOKIE'
|
||||||
|
-
|
||||||
|
yaql:
|
||||||
|
expression: $.data.passwords.where($ != '').first()
|
||||||
|
data:
|
||||||
|
passwords:
|
||||||
|
- {get_param: RabbitCookie}
|
||||||
|
- {get_param: [DefaultPasswords, rabbit_cookie]}
|
||||||
|
rabbitmq:
|
||||||
|
start_order: 2
|
||||||
|
image: *rabbitmq_image
|
||||||
|
net: host
|
||||||
|
privileged: false
|
||||||
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: /openstack/healthcheck
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
-
|
||||||
|
- /var/lib/kolla/config_files/rabbitmq.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq
|
||||||
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
|
- if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
-
|
||||||
|
- list_join:
|
||||||
|
- ':'
|
||||||
|
- - {get_param: InternalTLSCAFile}
|
||||||
|
- {get_param: InternalTLSCAFile}
|
||||||
|
- 'ro'
|
||||||
|
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
||||||
|
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
||||||
|
- null
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
docker_puppet_tasks:
|
||||||
|
# RabbitMQ users and policies initialization occurs only on single node
|
||||||
|
step_1:
|
||||||
|
config_volume: 'rabbit_init_tasks'
|
||||||
|
puppet_tags: 'rabbitmq_policy,rabbitmq_user'
|
||||||
|
step_config: 'include ::tripleo::profile::base::rabbitmq'
|
||||||
|
config_image: *rabbitmq_config_image
|
||||||
|
volumes:
|
||||||
|
- /var/lib/config-data/rabbitmq/etc/rabbitmq/:/etc/rabbitmq/:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq:ro
|
||||||
|
metadata_settings:
|
||||||
|
get_attr: [RabbitmqBase, role_data, metadata_settings]
|
||||||
|
host_prep_tasks:
|
||||||
|
- name: create persistent directories
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /var/log/containers/rabbitmq
|
||||||
|
- /var/lib/rabbitmq
|
||||||
|
- name: rabbitmq logs readme
|
||||||
|
copy:
|
||||||
|
dest: /var/log/rabbitmq/readme.txt
|
||||||
|
content: |
|
||||||
|
Log files from rabbitmq containers can be found under
|
||||||
|
/var/log/containers/rabbitmq.
|
||||||
|
ignore_errors: true
|
||||||
|
- name: Stop and disable the rabbitmq-server service
|
||||||
|
service:
|
||||||
|
name: rabbitmq-server
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
when: {get_param: UndercloudUpgrade}
|
||||||
|
upgrade_tasks:
|
||||||
|
- name: Check if rabbitmq server is deployed
|
||||||
|
command: systemctl is-enabled --quiet rabbitmq-server
|
||||||
|
tags: common
|
||||||
|
ignore_errors: True
|
||||||
|
register: rabbitmq_enabled
|
||||||
|
- name: "PreUpgrade step0,validation: Check service rabbitmq server is running"
|
||||||
|
command: systemctl is-active --quiet rabbitmq-server
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- rabbitmq_enabled.rc == 0
|
||||||
|
tags: validation
|
||||||
|
- name: Stop and disable rabbitmq service
|
||||||
|
when:
|
||||||
|
- step|int == 2
|
||||||
|
- rabbitmq_enabled.rc == 0
|
||||||
|
service: name=rabbitmq-server state=stopped enabled=no
|
||||||
|
update_tasks:
|
||||||
|
# TODO: Are we sure we want to support this. Rolling update
|
||||||
|
# without pacemaker may fail. Do we test this ? In any case,
|
||||||
|
# this is under paunch control so the latest image should be
|
||||||
|
# pulled in by the deploy steps. Same question for other
|
||||||
|
# usually managed by pacemaker container.
|
|
@ -0,0 +1,126 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
OpenStack containerized Qpid dispatch router service
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
DockerQdrouterdImage:
|
||||||
|
description: image
|
||||||
|
type: string
|
||||||
|
DockerQdrouterdConfigImage:
|
||||||
|
description: The container image to use for the qdrouterd config_volume
|
||||||
|
type: string
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ../containers-common.yaml
|
||||||
|
|
||||||
|
QdrouterdBase:
|
||||||
|
type: ../../../puppet/services/messaging/rpc-qdrouterd.yaml
|
||||||
|
properties:
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the qdrouterd service.
|
||||||
|
value:
|
||||||
|
service_name: {get_attr: [QdrouterdBase, role_data, service_name]}
|
||||||
|
global_config_settings: {get_attr: [QdrouterdBase, role_data, global_config_settings]}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- {get_attr: [QdrouterdBase, role_data, config_settings]}
|
||||||
|
- tripleo.oslo_messaging_rpc.firewall_rules:
|
||||||
|
'109 qdrouterd':
|
||||||
|
dport:
|
||||||
|
- 5672
|
||||||
|
- 31459
|
||||||
|
- 31460
|
||||||
|
service_config_settings: {get_attr: [QdrouterdBase, role_data, service_config_settings]}
|
||||||
|
# BEGIN DOCKER SETTINGS
|
||||||
|
puppet_config:
|
||||||
|
config_volume: qdrouterd
|
||||||
|
step_config:
|
||||||
|
get_attr: [QdrouterdBase, role_data, step_config]
|
||||||
|
config_image: {get_param: DockerQdrouterdConfigImage}
|
||||||
|
kolla_config:
|
||||||
|
/var/lib/kolla/config_files/qdrouterd.json:
|
||||||
|
command: /usr/sbin/qdrouterd -c /etc/qpid-dispatch/qdrouterd.conf
|
||||||
|
config_files:
|
||||||
|
- source: "/var/lib/kolla/config_files/src/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
permissions:
|
||||||
|
- path: /var/lib/qdrouterd
|
||||||
|
owner: qdrouterd:qdrouterd
|
||||||
|
recurse: true
|
||||||
|
docker_config:
|
||||||
|
step_1:
|
||||||
|
qdrouterd_init_logs:
|
||||||
|
start_order: 0
|
||||||
|
detach: false
|
||||||
|
image: &qdrouterd_image {get_param: DockerQdrouterdImage}
|
||||||
|
privileged: false
|
||||||
|
user: root
|
||||||
|
volumes:
|
||||||
|
- /var/log/containers/qdrouterd:/var/log/qdrouterd
|
||||||
|
command: ['/bin/bash', '-c', 'chown -R qdrouterd:qdrouterd /var/log/qdrouterd']
|
||||||
|
qdrouterd:
|
||||||
|
start_order: 1
|
||||||
|
image: *qdrouterd_image
|
||||||
|
net: host
|
||||||
|
user: qdrouterd
|
||||||
|
privileged: false
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
-
|
||||||
|
- /var/lib/kolla/config_files/qdrouterd.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/qdrouterd/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /var/lib/qdrouterd:/var/lib/qdrouterd
|
||||||
|
- /var/log/containers/qdrouterd:/var/log/qdrouterd
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
host_prep_tasks:
|
||||||
|
- name: create persistent logs directory
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /var/log/containers/qdrouterd
|
||||||
|
- /var/lib/qdrouterd
|
||||||
|
metadata_settings:
|
||||||
|
get_attr: [QdrouterdBase, role_data, metadata_settings]
|
|
@ -0,0 +1,260 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
OpenStack containerized Rabbitmq service
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
DockerRabbitmqImage:
|
||||||
|
description: image
|
||||||
|
type: string
|
||||||
|
DockerRabbitmqConfigImage:
|
||||||
|
description: The container image to use for the rabbitmq config_volume
|
||||||
|
type: string
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
RabbitCookie:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
hidden: true
|
||||||
|
EnableInternalTLS:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
InternalTLSCAFile:
|
||||||
|
default: '/etc/ipa/ca.crt'
|
||||||
|
type: string
|
||||||
|
description: Specifies the default CA cert to use if TLS is used for
|
||||||
|
services in the internal network.
|
||||||
|
UndercloudUpgrade:
|
||||||
|
type: boolean
|
||||||
|
description: Flag to indicate undercloud upgrade process is being run.
|
||||||
|
default: false
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ../containers-common.yaml
|
||||||
|
|
||||||
|
RabbitmqBase:
|
||||||
|
type: ../../../puppet/services/messaging/rpc-rabbitmq.yaml
|
||||||
|
properties:
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the Rabbitmq API role.
|
||||||
|
value:
|
||||||
|
service_name: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
# RabbitMQ plugins initialization occurs on every node
|
||||||
|
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- {get_attr: [RabbitmqBase, role_data, config_settings]}
|
||||||
|
- rabbitmq::admin_enable: false
|
||||||
|
- if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
- tripleo::certmonger::rabbitmq::postsave_cmd: "true" # TODO: restart the rabbitmq container here
|
||||||
|
- {}
|
||||||
|
logging_source: {get_attr: [RabbitmqBase, role_data, logging_source]}
|
||||||
|
logging_groups: {get_attr: [RabbitmqBase, role_data, logging_groups]}
|
||||||
|
service_config_settings: {get_attr: [RabbitmqBase, role_data, service_config_settings]}
|
||||||
|
# BEGIN DOCKER SETTINGS
|
||||||
|
puppet_config:
|
||||||
|
config_volume: rabbitmq
|
||||||
|
step_config:
|
||||||
|
list_join:
|
||||||
|
- "\n"
|
||||||
|
- - "['Rabbitmq_policy', 'Rabbitmq_user'].each |String $val| { noop_resource($val) }"
|
||||||
|
- get_attr: [RabbitmqBase, role_data, step_config]
|
||||||
|
config_image: &rabbitmq_config_image {get_param: DockerRabbitmqConfigImage}
|
||||||
|
kolla_config:
|
||||||
|
/var/lib/kolla/config_files/rabbitmq.json:
|
||||||
|
command: /usr/lib/rabbitmq/bin/rabbitmq-server
|
||||||
|
config_files:
|
||||||
|
- source: "/var/lib/kolla/config_files/src/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
- source: "/var/lib/kolla/config_files/src-tls/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
optional: true
|
||||||
|
permissions:
|
||||||
|
- path: /var/lib/rabbitmq
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
recurse: true
|
||||||
|
- path: /etc/pki/tls/certs/rabbitmq.crt
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
optional: true
|
||||||
|
- path: /etc/pki/tls/private/rabbitmq.key
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
optional: true
|
||||||
|
docker_config:
|
||||||
|
# Kolla_bootstrap runs before permissions set by kolla_config
|
||||||
|
step_1:
|
||||||
|
rabbitmq_init_logs:
|
||||||
|
start_order: 0
|
||||||
|
detach: false
|
||||||
|
image: &rabbitmq_image {get_param: DockerRabbitmqImage}
|
||||||
|
privileged: false
|
||||||
|
user: root
|
||||||
|
volumes:
|
||||||
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
|
command: ['/bin/bash', '-c', 'chown -R rabbitmq:rabbitmq /var/log/rabbitmq']
|
||||||
|
rabbitmq_bootstrap:
|
||||||
|
start_order: 1
|
||||||
|
detach: false
|
||||||
|
image: *rabbitmq_image
|
||||||
|
net: host
|
||||||
|
privileged: false
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
-
|
||||||
|
- /var/lib/kolla/config_files/rabbitmq.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq
|
||||||
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
|
- if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
-
|
||||||
|
- list_join:
|
||||||
|
- ':'
|
||||||
|
- - {get_param: InternalTLSCAFile}
|
||||||
|
- {get_param: InternalTLSCAFile}
|
||||||
|
- 'ro'
|
||||||
|
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
||||||
|
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
||||||
|
- null
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
- KOLLA_BOOTSTRAP=True
|
||||||
|
-
|
||||||
|
list_join:
|
||||||
|
- '='
|
||||||
|
- - 'RABBITMQ_CLUSTER_COOKIE'
|
||||||
|
-
|
||||||
|
yaql:
|
||||||
|
expression: $.data.passwords.where($ != '').first()
|
||||||
|
data:
|
||||||
|
passwords:
|
||||||
|
- {get_param: RabbitCookie}
|
||||||
|
- {get_param: [DefaultPasswords, rabbit_cookie]}
|
||||||
|
rabbitmq:
|
||||||
|
start_order: 2
|
||||||
|
image: *rabbitmq_image
|
||||||
|
net: host
|
||||||
|
privileged: false
|
||||||
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: /openstack/healthcheck
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
-
|
||||||
|
- /var/lib/kolla/config_files/rabbitmq.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq
|
||||||
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
|
- if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
-
|
||||||
|
- list_join:
|
||||||
|
- ':'
|
||||||
|
- - {get_param: InternalTLSCAFile}
|
||||||
|
- {get_param: InternalTLSCAFile}
|
||||||
|
- 'ro'
|
||||||
|
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
||||||
|
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
||||||
|
- null
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
docker_puppet_tasks:
|
||||||
|
# RabbitMQ users and policies initialization occurs only on single node
|
||||||
|
step_1:
|
||||||
|
config_volume: 'rabbit_init_tasks'
|
||||||
|
puppet_tags: 'rabbitmq_policy,rabbitmq_user'
|
||||||
|
step_config: 'include ::tripleo::profile::base::rabbitmq'
|
||||||
|
config_image: *rabbitmq_config_image
|
||||||
|
volumes:
|
||||||
|
- /var/lib/config-data/rabbitmq/etc/rabbitmq/:/etc/rabbitmq/:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq:ro
|
||||||
|
metadata_settings:
|
||||||
|
get_attr: [RabbitmqBase, role_data, metadata_settings]
|
||||||
|
host_prep_tasks:
|
||||||
|
- name: create persistent directories
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /var/log/containers/rabbitmq
|
||||||
|
- /var/lib/rabbitmq
|
||||||
|
- name: rabbitmq logs readme
|
||||||
|
copy:
|
||||||
|
dest: /var/log/rabbitmq/readme.txt
|
||||||
|
content: |
|
||||||
|
Log files from rabbitmq containers can be found under
|
||||||
|
/var/log/containers/rabbitmq.
|
||||||
|
ignore_errors: true
|
||||||
|
- name: Stop and disable the rabbitmq-server service
|
||||||
|
service:
|
||||||
|
name: rabbitmq-server
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
when: {get_param: UndercloudUpgrade}
|
||||||
|
upgrade_tasks:
|
||||||
|
- name: Check if rabbitmq server is deployed
|
||||||
|
command: systemctl is-enabled --quiet rabbitmq-server
|
||||||
|
tags: common
|
||||||
|
ignore_errors: True
|
||||||
|
register: rabbitmq_enabled
|
||||||
|
- name: "PreUpgrade step0,validation: Check service rabbitmq server is running"
|
||||||
|
command: systemctl is-active --quiet rabbitmq-server
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- rabbitmq_enabled.rc == 0
|
||||||
|
tags: validation
|
||||||
|
- name: Stop and disable rabbitmq service
|
||||||
|
when:
|
||||||
|
- step|int == 2
|
||||||
|
- rabbitmq_enabled.rc == 0
|
||||||
|
service: name=rabbitmq-server state=stopped enabled=no
|
||||||
|
update_tasks:
|
||||||
|
# TODO: Are we sure we want to support this. Rolling update
|
||||||
|
# without pacemaker may fail. Do we test this ? In any case,
|
||||||
|
# this is under paunch control so the latest image should be
|
||||||
|
# pulled in by the deploy steps. Same question for other
|
||||||
|
# usually managed by pacemaker container.
|
|
@ -0,0 +1,378 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
OpenStack containerized Rabbitmq service
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
DockerRabbitmqImage:
|
||||||
|
description: image
|
||||||
|
type: string
|
||||||
|
DockerRabbitmqConfigImage:
|
||||||
|
description: The container image to use for the rabbitmq config_volume
|
||||||
|
type: string
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RabbitCookie:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
hidden: true
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
ConfigDebug:
|
||||||
|
default: false
|
||||||
|
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ../containers-common.yaml
|
||||||
|
|
||||||
|
RabbitmqBase:
|
||||||
|
type: ../../../puppet/services/messaging/notify-rabbitmq.yaml
|
||||||
|
properties:
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the Rabbitmq API role.
|
||||||
|
value:
|
||||||
|
service_name: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- {get_attr: [RabbitmqBase, role_data, config_settings]}
|
||||||
|
- rabbitmq::service_manage: false
|
||||||
|
tripleo::profile::pacemaker::rabbitmq_bundle::rabbitmq_docker_image: &rabbitmq_image_pcmklatest
|
||||||
|
list_join:
|
||||||
|
- ':'
|
||||||
|
- - yaql:
|
||||||
|
data: {get_param: DockerRabbitmqImage}
|
||||||
|
expression: $.data.rightSplit(separator => ":", maxSplits => 1)[0]
|
||||||
|
- 'pcmklatest'
|
||||||
|
tripleo::profile::pacemaker::rabbitmq_bundle::control_port: 3122
|
||||||
|
tripleo.oslo_messaging_notify.firewall_rules:
|
||||||
|
'109 rabbitmq-bundle':
|
||||||
|
dport:
|
||||||
|
- 3122
|
||||||
|
- 4369
|
||||||
|
- 5672
|
||||||
|
- 25672
|
||||||
|
logging_source: {get_attr: [RabbitmqBase, role_data, logging_source]}
|
||||||
|
logging_groups: {get_attr: [RabbitmqBase, role_data, logging_groups]}
|
||||||
|
service_config_settings: {get_attr: [RabbitmqBase, role_data, service_config_settings]}
|
||||||
|
# BEGIN DOCKER SETTINGS
|
||||||
|
puppet_config:
|
||||||
|
config_volume: rabbitmq
|
||||||
|
puppet_tags: file
|
||||||
|
step_config:
|
||||||
|
list_join:
|
||||||
|
- "\n"
|
||||||
|
- - "['Rabbitmq_policy', 'Rabbitmq_user'].each |String $val| { noop_resource($val) }"
|
||||||
|
- get_attr: [RabbitmqBase, role_data, step_config]
|
||||||
|
config_image: {get_param: DockerRabbitmqConfigImage}
|
||||||
|
kolla_config:
|
||||||
|
/var/lib/kolla/config_files/rabbitmq.json:
|
||||||
|
command: /usr/sbin/pacemaker_remoted
|
||||||
|
config_files:
|
||||||
|
- dest: /etc/libqb/force-filesystem-sockets
|
||||||
|
source: /dev/null
|
||||||
|
owner: root
|
||||||
|
perm: '0644'
|
||||||
|
- source: "/var/lib/kolla/config_files/src/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
- source: "/var/lib/kolla/config_files/src-tls/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
optional: true
|
||||||
|
preserve_properties: true
|
||||||
|
permissions:
|
||||||
|
- path: /var/lib/rabbitmq
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
recurse: true
|
||||||
|
- path: /var/log/rabbitmq
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
recurse: true
|
||||||
|
- path: /etc/pki/tls/certs/rabbitmq.crt
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
perm: '0600'
|
||||||
|
optional: true
|
||||||
|
- path: /etc/pki/tls/private/rabbitmq.key
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
perm: '0600'
|
||||||
|
optional: true
|
||||||
|
# When using pacemaker we don't launch the container, instead that is done by pacemaker
|
||||||
|
# itself.
|
||||||
|
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]}
|
||||||
|
docker_config:
|
||||||
|
step_1:
|
||||||
|
rabbitmq_bootstrap:
|
||||||
|
start_order: 0
|
||||||
|
image: {get_param: DockerRabbitmqImage}
|
||||||
|
net: host
|
||||||
|
privileged: false
|
||||||
|
volumes:
|
||||||
|
- /var/lib/kolla/config_files/rabbitmq.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /etc/hosts:/etc/hosts:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
- KOLLA_BOOTSTRAP=True
|
||||||
|
-
|
||||||
|
list_join:
|
||||||
|
- '='
|
||||||
|
- - 'RABBITMQ_CLUSTER_COOKIE'
|
||||||
|
-
|
||||||
|
yaql:
|
||||||
|
expression: $.data.passwords.where($ != '').first()
|
||||||
|
data:
|
||||||
|
passwords:
|
||||||
|
- {get_param: RabbitCookie}
|
||||||
|
- {get_param: [DefaultPasswords, rabbit_cookie]}
|
||||||
|
rabbitmq_image_tag:
|
||||||
|
start_order: 1
|
||||||
|
detach: false
|
||||||
|
net: host
|
||||||
|
user: root
|
||||||
|
command:
|
||||||
|
- '/bin/bash'
|
||||||
|
- '-c'
|
||||||
|
- str_replace:
|
||||||
|
template:
|
||||||
|
"/usr/bin/docker tag 'RABBITMQ_IMAGE' 'RABBITMQ_IMAGE_PCMKLATEST'"
|
||||||
|
params:
|
||||||
|
RABBITMQ_IMAGE: {get_param: DockerRabbitmqImage}
|
||||||
|
RABBITMQ_IMAGE_PCMKLATEST: *rabbitmq_image_pcmklatest
|
||||||
|
image: {get_param: DockerRabbitmqImage}
|
||||||
|
volumes:
|
||||||
|
- /etc/hosts:/etc/hosts:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /dev/shm:/dev/shm:rw
|
||||||
|
- /etc/sysconfig/docker:/etc/sysconfig/docker:ro
|
||||||
|
- /usr/bin:/usr/bin:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||||
|
step_2:
|
||||||
|
rabbitmq_init_bundle:
|
||||||
|
start_order: 0
|
||||||
|
detach: false
|
||||||
|
net: host
|
||||||
|
user: root
|
||||||
|
command: # '/docker_puppet_apply.sh "STEP" "TAGS" "CONFIG" "DEBUG"'
|
||||||
|
list_concat:
|
||||||
|
- - '/docker_puppet_apply.sh'
|
||||||
|
- '2'
|
||||||
|
- 'file,file_line,concat,augeas,pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ocf,pacemaker::constraint::order,pacemaker::constraint::colocation,rabbitmq_policy,rabbitmq_user,rabbitmq_ready'
|
||||||
|
- 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profile::pacemaker::rabbitmq_bundle'
|
||||||
|
- if:
|
||||||
|
- puppet_debug_enabled
|
||||||
|
- - '--debug'
|
||||||
|
- - ''
|
||||||
|
image: {get_param: DockerRabbitmqImage}
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, docker_puppet_apply_volumes]}
|
||||||
|
- - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||||
|
- /dev/shm:/dev/shm:rw
|
||||||
|
- /bin/true:/bin/epmd
|
||||||
|
host_prep_tasks:
|
||||||
|
- name: create persistent directories
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /var/lib/rabbitmq
|
||||||
|
- /var/log/containers/rabbitmq
|
||||||
|
- name: rabbitmq logs readme
|
||||||
|
copy:
|
||||||
|
dest: /var/log/rabbitmq/readme.txt
|
||||||
|
content: |
|
||||||
|
Log files from rabbitmq containers can be found under
|
||||||
|
/var/log/containers/rabbitmq.
|
||||||
|
ignore_errors: true
|
||||||
|
- name: stop the Erlang port mapper on the host and make sure it cannot bind to the port used by container
|
||||||
|
shell: |
|
||||||
|
echo 'export ERL_EPMD_ADDRESS=127.0.0.1' > /etc/rabbitmq/rabbitmq-env.conf
|
||||||
|
echo 'export ERL_EPMD_PORT=4370' >> /etc/rabbitmq/rabbitmq-env.conf
|
||||||
|
for pid in $(pgrep epmd --ns 1 --nslist pid); do kill $pid; done
|
||||||
|
metadata_settings:
|
||||||
|
get_attr: [RabbitmqBase, role_data, metadata_settings]
|
||||||
|
update_tasks:
|
||||||
|
- name: Rabbit fetch and retag container image for pacemaker
|
||||||
|
when: step|int == 2
|
||||||
|
block: &rabbitmq_fetch_retag_container_tasks
|
||||||
|
- name: Get docker Rabbitmq image
|
||||||
|
set_fact:
|
||||||
|
docker_image: {get_param: DockerRabbitmqImage}
|
||||||
|
docker_image_latest: *rabbitmq_image_pcmklatest
|
||||||
|
- name: Get previous Rabbitmq image id
|
||||||
|
shell: "docker images | awk '/rabbitmq.* pcmklatest/{print $3}'"
|
||||||
|
register: rabbitmq_image_id
|
||||||
|
- block:
|
||||||
|
- name: Get a list of container using Rabbitmq image
|
||||||
|
shell: "docker ps -a -q -f 'ancestor={{rabbitmq_image_id.stdout}}'"
|
||||||
|
register: rabbitmq_containers_to_destroy
|
||||||
|
# It will be recreated with the delpoy step.
|
||||||
|
- name: Remove any container using the same Rabbitmq image
|
||||||
|
shell: "docker rm -fv {{item}}"
|
||||||
|
with_items: "{{ rabbitmq_containers_to_destroy.stdout_lines }}"
|
||||||
|
- name: Remove previous Rabbitmq images
|
||||||
|
shell: "docker rmi -f {{rabbitmq_image_id.stdout}}"
|
||||||
|
when:
|
||||||
|
- rabbitmq_image_id.stdout != ''
|
||||||
|
- name: Pull latest Rabbitmq images
|
||||||
|
command: "docker pull {{docker_image}}"
|
||||||
|
- name: Retag pcmklatest to latest Rabbitmq image
|
||||||
|
shell: "docker tag {{docker_image}} {{docker_image_latest}}"
|
||||||
|
# Got to check that pacemaker_is_active is working fine with bundle.
|
||||||
|
# TODO: pacemaker_is_active resource doesn't support bundle.
|
||||||
|
upgrade_tasks:
|
||||||
|
- name: Get docker Rabbitmq image
|
||||||
|
set_fact:
|
||||||
|
docker_image_latest: *rabbitmq_image_pcmklatest
|
||||||
|
- name: Check for Rabbitmq Kolla configuration
|
||||||
|
stat:
|
||||||
|
path: /var/lib/config-data/puppet-generated/rabbitmq
|
||||||
|
register: rabbit_kolla_config
|
||||||
|
- name: Check if Rabbitmq is already containerized
|
||||||
|
set_fact:
|
||||||
|
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
|
- name: set is_bootstrap_node fact
|
||||||
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
|
- name: Rabbitmq baremetal to container upgrade tasks
|
||||||
|
when:
|
||||||
|
- step|int == 1
|
||||||
|
- not rabbit_containerized|bool
|
||||||
|
block:
|
||||||
|
- name: Check cluster resource status of rabbitmq
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
check_mode: false
|
||||||
|
state: show
|
||||||
|
ignore_errors: true
|
||||||
|
register: rabbitmq_res
|
||||||
|
- when: (is_bootstrap_node) and (rabbitmq_res|succeeded)
|
||||||
|
block:
|
||||||
|
- name: Disable the rabbitmq cluster resource.
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: disable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Delete the stopped rabbitmq cluster resource.
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: delete
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Disable rabbitmq service
|
||||||
|
service: name=rabbitmq-server enabled=no
|
||||||
|
- name: Move rabbitmq logging to /var/log/containers
|
||||||
|
when:
|
||||||
|
- step|int == 1
|
||||||
|
- rabbit_containerized|bool
|
||||||
|
- is_bootstrap_node
|
||||||
|
block:
|
||||||
|
- name: Check rabbitmq logging configuration in pacemaker
|
||||||
|
command: cibadmin --query --xpath "//storage-mapping[@id='rabbitmq-log']"
|
||||||
|
ignore_errors: true
|
||||||
|
register: rabbitmq_logs_moved
|
||||||
|
- name: Change rabbitmq logging configuration in pacemaker
|
||||||
|
# rc == 6 means the configuration doesn't exist in the CIB
|
||||||
|
when: rabbitmq_logs_moved.rc == 6
|
||||||
|
block:
|
||||||
|
- name: Disable the rabbitmq cluster resource
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: rabbitmq
|
||||||
|
state: disable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Add a bind mount for logging in the rabbitmq bundle
|
||||||
|
command: pcs resource bundle update rabbitmq-bundle storage-map add id=rabbitmq-log source-dir=/var/log/containers/rabbitmq target-dir=/var/log/rabbitmq options=rw
|
||||||
|
- name: Enable the rabbitmq cluster resource
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: rabbitmq
|
||||||
|
state: enable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Retag the pacemaker image if containerized
|
||||||
|
when:
|
||||||
|
- step|int == 3
|
||||||
|
- rabbit_containerized|bool
|
||||||
|
block: *rabbitmq_fetch_retag_container_tasks
|
||||||
|
fast_forward_upgrade_tasks:
|
||||||
|
- name: Check cluster resource status of rabbitmq
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: show
|
||||||
|
check_mode: false
|
||||||
|
ignore_errors: true
|
||||||
|
register: rabbitmq_res_result
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- release == 'ocata'
|
||||||
|
- is_bootstrap_node|bool
|
||||||
|
- name: Set fact rabbitmq_res
|
||||||
|
set_fact:
|
||||||
|
rabbitmq_res: "{{ rabbitmq_res_result.rc == 0 }}"
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- release == 'ocata'
|
||||||
|
- is_bootstrap_node|bool
|
||||||
|
- name: Disable the rabitmq cluster resource
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: disable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: rabbitmq_output
|
||||||
|
retries: 5
|
||||||
|
until: rabbitmq_output.rc == 0
|
||||||
|
when:
|
||||||
|
- step|int == 2
|
||||||
|
- release == 'ocata'
|
||||||
|
- is_bootstrap_node|bool
|
||||||
|
- rabbitmq_res|bool
|
|
@ -0,0 +1,378 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
OpenStack containerized Rabbitmq service
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
DockerRabbitmqImage:
|
||||||
|
description: image
|
||||||
|
type: string
|
||||||
|
DockerRabbitmqConfigImage:
|
||||||
|
description: The container image to use for the rabbitmq config_volume
|
||||||
|
type: string
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RabbitCookie:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
hidden: true
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
ConfigDebug:
|
||||||
|
default: false
|
||||||
|
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
ContainersCommon:
|
||||||
|
type: ../containers-common.yaml
|
||||||
|
|
||||||
|
RabbitmqBase:
|
||||||
|
type: ../../../puppet/services/messaging/rpc-rabbitmq.yaml
|
||||||
|
properties:
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the Rabbitmq API role.
|
||||||
|
value:
|
||||||
|
service_name: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
global_config_settings: {get_attr: [RabbitmqBase, role_data, global_config_settings]}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- {get_attr: [RabbitmqBase, role_data, config_settings]}
|
||||||
|
- rabbitmq::service_manage: false
|
||||||
|
tripleo::profile::pacemaker::rabbitmq_bundle::rabbitmq_docker_image: &rabbitmq_image_pcmklatest
|
||||||
|
list_join:
|
||||||
|
- ':'
|
||||||
|
- - yaql:
|
||||||
|
data: {get_param: DockerRabbitmqImage}
|
||||||
|
expression: $.data.rightSplit(separator => ":", maxSplits => 1)[0]
|
||||||
|
- 'pcmklatest'
|
||||||
|
tripleo::profile::pacemaker::rabbitmq_bundle::control_port: 3122
|
||||||
|
tripleo.oslo_messaging_rpc.firewall_rules:
|
||||||
|
'109 rabbitmq-bundle':
|
||||||
|
dport:
|
||||||
|
- 3122
|
||||||
|
- 4369
|
||||||
|
- 5672
|
||||||
|
- 25672
|
||||||
|
logging_source: {get_attr: [RabbitmqBase, role_data, logging_source]}
|
||||||
|
logging_groups: {get_attr: [RabbitmqBase, role_data, logging_groups]}
|
||||||
|
service_config_settings: {get_attr: [RabbitmqBase, role_data, service_config_settings]}
|
||||||
|
# BEGIN DOCKER SETTINGS
|
||||||
|
puppet_config:
|
||||||
|
config_volume: rabbitmq
|
||||||
|
puppet_tags: file
|
||||||
|
step_config:
|
||||||
|
list_join:
|
||||||
|
- "\n"
|
||||||
|
- - "['Rabbitmq_policy', 'Rabbitmq_user'].each |String $val| { noop_resource($val) }"
|
||||||
|
- get_attr: [RabbitmqBase, role_data, step_config]
|
||||||
|
config_image: {get_param: DockerRabbitmqConfigImage}
|
||||||
|
kolla_config:
|
||||||
|
/var/lib/kolla/config_files/rabbitmq.json:
|
||||||
|
command: /usr/sbin/pacemaker_remoted
|
||||||
|
config_files:
|
||||||
|
- dest: /etc/libqb/force-filesystem-sockets
|
||||||
|
source: /dev/null
|
||||||
|
owner: root
|
||||||
|
perm: '0644'
|
||||||
|
- source: "/var/lib/kolla/config_files/src/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
preserve_properties: true
|
||||||
|
- source: "/var/lib/kolla/config_files/src-tls/*"
|
||||||
|
dest: "/"
|
||||||
|
merge: true
|
||||||
|
optional: true
|
||||||
|
preserve_properties: true
|
||||||
|
permissions:
|
||||||
|
- path: /var/lib/rabbitmq
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
recurse: true
|
||||||
|
- path: /var/log/rabbitmq
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
recurse: true
|
||||||
|
- path: /etc/pki/tls/certs/rabbitmq.crt
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
perm: '0600'
|
||||||
|
optional: true
|
||||||
|
- path: /etc/pki/tls/private/rabbitmq.key
|
||||||
|
owner: rabbitmq:rabbitmq
|
||||||
|
perm: '0600'
|
||||||
|
optional: true
|
||||||
|
# When using pacemaker we don't launch the container, instead that is done by pacemaker
|
||||||
|
# itself.
|
||||||
|
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]}
|
||||||
|
docker_config:
|
||||||
|
step_1:
|
||||||
|
rabbitmq_bootstrap:
|
||||||
|
start_order: 0
|
||||||
|
image: {get_param: DockerRabbitmqImage}
|
||||||
|
net: host
|
||||||
|
privileged: false
|
||||||
|
volumes:
|
||||||
|
- /var/lib/kolla/config_files/rabbitmq.json:/var/lib/kolla/config_files/config.json:ro
|
||||||
|
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||||
|
- /etc/hosts:/etc/hosts:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/lib/rabbitmq:/var/lib/rabbitmq
|
||||||
|
environment:
|
||||||
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
|
- KOLLA_BOOTSTRAP=True
|
||||||
|
-
|
||||||
|
list_join:
|
||||||
|
- '='
|
||||||
|
- - 'RABBITMQ_CLUSTER_COOKIE'
|
||||||
|
-
|
||||||
|
yaql:
|
||||||
|
expression: $.data.passwords.where($ != '').first()
|
||||||
|
data:
|
||||||
|
passwords:
|
||||||
|
- {get_param: RabbitCookie}
|
||||||
|
- {get_param: [DefaultPasswords, rabbit_cookie]}
|
||||||
|
rabbitmq_image_tag:
|
||||||
|
start_order: 1
|
||||||
|
detach: false
|
||||||
|
net: host
|
||||||
|
user: root
|
||||||
|
command:
|
||||||
|
- '/bin/bash'
|
||||||
|
- '-c'
|
||||||
|
- str_replace:
|
||||||
|
template:
|
||||||
|
"/usr/bin/docker tag 'RABBITMQ_IMAGE' 'RABBITMQ_IMAGE_PCMKLATEST'"
|
||||||
|
params:
|
||||||
|
RABBITMQ_IMAGE: {get_param: DockerRabbitmqImage}
|
||||||
|
RABBITMQ_IMAGE_PCMKLATEST: *rabbitmq_image_pcmklatest
|
||||||
|
image: {get_param: DockerRabbitmqImage}
|
||||||
|
volumes:
|
||||||
|
- /etc/hosts:/etc/hosts:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /dev/shm:/dev/shm:rw
|
||||||
|
- /etc/sysconfig/docker:/etc/sysconfig/docker:ro
|
||||||
|
- /usr/bin:/usr/bin:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||||
|
step_2:
|
||||||
|
rabbitmq_init_bundle:
|
||||||
|
start_order: 0
|
||||||
|
detach: false
|
||||||
|
net: host
|
||||||
|
user: root
|
||||||
|
command: # '/docker_puppet_apply.sh "STEP" "TAGS" "CONFIG" "DEBUG"'
|
||||||
|
list_concat:
|
||||||
|
- - '/docker_puppet_apply.sh'
|
||||||
|
- '2'
|
||||||
|
- 'file,file_line,concat,augeas,pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ocf,pacemaker::constraint::order,pacemaker::constraint::colocation,rabbitmq_policy,rabbitmq_user,rabbitmq_ready'
|
||||||
|
- 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profile::pacemaker::rabbitmq_bundle'
|
||||||
|
- if:
|
||||||
|
- puppet_debug_enabled
|
||||||
|
- - '--debug'
|
||||||
|
- - ''
|
||||||
|
image: {get_param: DockerRabbitmqImage}
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, docker_puppet_apply_volumes]}
|
||||||
|
- - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||||
|
- /dev/shm:/dev/shm:rw
|
||||||
|
- /bin/true:/bin/epmd
|
||||||
|
host_prep_tasks:
|
||||||
|
- name: create persistent directories
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /var/lib/rabbitmq
|
||||||
|
- /var/log/containers/rabbitmq
|
||||||
|
- name: rabbitmq logs readme
|
||||||
|
copy:
|
||||||
|
dest: /var/log/rabbitmq/readme.txt
|
||||||
|
content: |
|
||||||
|
Log files from rabbitmq containers can be found under
|
||||||
|
/var/log/containers/rabbitmq.
|
||||||
|
ignore_errors: true
|
||||||
|
- name: stop the Erlang port mapper on the host and make sure it cannot bind to the port used by container
|
||||||
|
shell: |
|
||||||
|
echo 'export ERL_EPMD_ADDRESS=127.0.0.1' > /etc/rabbitmq/rabbitmq-env.conf
|
||||||
|
echo 'export ERL_EPMD_PORT=4370' >> /etc/rabbitmq/rabbitmq-env.conf
|
||||||
|
for pid in $(pgrep epmd --ns 1 --nslist pid); do kill $pid; done
|
||||||
|
metadata_settings:
|
||||||
|
get_attr: [RabbitmqBase, role_data, metadata_settings]
|
||||||
|
update_tasks:
|
||||||
|
- name: Rabbit fetch and retag container image for pacemaker
|
||||||
|
when: step|int == 2
|
||||||
|
block: &rabbitmq_fetch_retag_container_tasks
|
||||||
|
- name: Get docker Rabbitmq image
|
||||||
|
set_fact:
|
||||||
|
docker_image: {get_param: DockerRabbitmqImage}
|
||||||
|
docker_image_latest: *rabbitmq_image_pcmklatest
|
||||||
|
- name: Get previous Rabbitmq image id
|
||||||
|
shell: "docker images | awk '/rabbitmq.* pcmklatest/{print $3}'"
|
||||||
|
register: rabbitmq_image_id
|
||||||
|
- block:
|
||||||
|
- name: Get a list of container using Rabbitmq image
|
||||||
|
shell: "docker ps -a -q -f 'ancestor={{rabbitmq_image_id.stdout}}'"
|
||||||
|
register: rabbitmq_containers_to_destroy
|
||||||
|
# It will be recreated with the delpoy step.
|
||||||
|
- name: Remove any container using the same Rabbitmq image
|
||||||
|
shell: "docker rm -fv {{item}}"
|
||||||
|
with_items: "{{ rabbitmq_containers_to_destroy.stdout_lines }}"
|
||||||
|
- name: Remove previous Rabbitmq images
|
||||||
|
shell: "docker rmi -f {{rabbitmq_image_id.stdout}}"
|
||||||
|
when:
|
||||||
|
- rabbitmq_image_id.stdout != ''
|
||||||
|
- name: Pull latest Rabbitmq images
|
||||||
|
command: "docker pull {{docker_image}}"
|
||||||
|
- name: Retag pcmklatest to latest Rabbitmq image
|
||||||
|
shell: "docker tag {{docker_image}} {{docker_image_latest}}"
|
||||||
|
# Got to check that pacemaker_is_active is working fine with bundle.
|
||||||
|
# TODO: pacemaker_is_active resource doesn't support bundle.
|
||||||
|
upgrade_tasks:
|
||||||
|
- name: Get docker Rabbitmq image
|
||||||
|
set_fact:
|
||||||
|
docker_image_latest: *rabbitmq_image_pcmklatest
|
||||||
|
- name: Check for Rabbitmq Kolla configuration
|
||||||
|
stat:
|
||||||
|
path: /var/lib/config-data/puppet-generated/rabbitmq
|
||||||
|
register: rabbit_kolla_config
|
||||||
|
- name: Check if Rabbitmq is already containerized
|
||||||
|
set_fact:
|
||||||
|
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
|
- name: set is_bootstrap_node fact
|
||||||
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
|
- name: Rabbitmq baremetal to container upgrade tasks
|
||||||
|
when:
|
||||||
|
- step|int == 1
|
||||||
|
- not rabbit_containerized|bool
|
||||||
|
block:
|
||||||
|
- name: Check cluster resource status of rabbitmq
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
check_mode: false
|
||||||
|
state: show
|
||||||
|
ignore_errors: true
|
||||||
|
register: rabbitmq_res
|
||||||
|
- when: (is_bootstrap_node) and (rabbitmq_res|succeeded)
|
||||||
|
block:
|
||||||
|
- name: Disable the rabbitmq cluster resource.
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: disable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Delete the stopped rabbitmq cluster resource.
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: delete
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Disable rabbitmq service
|
||||||
|
service: name=rabbitmq-server enabled=no
|
||||||
|
- name: Move rabbitmq logging to /var/log/containers
|
||||||
|
when:
|
||||||
|
- step|int == 1
|
||||||
|
- rabbit_containerized|bool
|
||||||
|
- is_bootstrap_node
|
||||||
|
block:
|
||||||
|
- name: Check rabbitmq logging configuration in pacemaker
|
||||||
|
command: cibadmin --query --xpath "//storage-mapping[@id='rabbitmq-log']"
|
||||||
|
ignore_errors: true
|
||||||
|
register: rabbitmq_logs_moved
|
||||||
|
- name: Change rabbitmq logging configuration in pacemaker
|
||||||
|
# rc == 6 means the configuration doesn't exist in the CIB
|
||||||
|
when: rabbitmq_logs_moved.rc == 6
|
||||||
|
block:
|
||||||
|
- name: Disable the rabbitmq cluster resource
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: rabbitmq
|
||||||
|
state: disable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Add a bind mount for logging in the rabbitmq bundle
|
||||||
|
command: pcs resource bundle update rabbitmq-bundle storage-map add id=rabbitmq-log source-dir=/var/log/containers/rabbitmq target-dir=/var/log/rabbitmq options=rw
|
||||||
|
- name: Enable the rabbitmq cluster resource
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: rabbitmq
|
||||||
|
state: enable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: output
|
||||||
|
retries: 5
|
||||||
|
until: output.rc == 0
|
||||||
|
- name: Retag the pacemaker image if containerized
|
||||||
|
when:
|
||||||
|
- step|int == 3
|
||||||
|
- rabbit_containerized|bool
|
||||||
|
block: *rabbitmq_fetch_retag_container_tasks
|
||||||
|
fast_forward_upgrade_tasks:
|
||||||
|
- name: Check cluster resource status of rabbitmq
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: show
|
||||||
|
check_mode: false
|
||||||
|
ignore_errors: true
|
||||||
|
register: rabbitmq_res_result
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- release == 'ocata'
|
||||||
|
- is_bootstrap_node|bool
|
||||||
|
- name: Set fact rabbitmq_res
|
||||||
|
set_fact:
|
||||||
|
rabbitmq_res: "{{ rabbitmq_res_result.rc == 0 }}"
|
||||||
|
when:
|
||||||
|
- step|int == 0
|
||||||
|
- release == 'ocata'
|
||||||
|
- is_bootstrap_node|bool
|
||||||
|
- name: Disable the rabitmq cluster resource
|
||||||
|
pacemaker_resource:
|
||||||
|
resource: {get_attr: [RabbitmqBase, role_data, service_name]}
|
||||||
|
state: disable
|
||||||
|
wait_for_resource: true
|
||||||
|
register: rabbitmq_output
|
||||||
|
retries: 5
|
||||||
|
until: rabbitmq_output.rc == 0
|
||||||
|
when:
|
||||||
|
- step|int == 2
|
||||||
|
- release == 'ocata'
|
||||||
|
- is_bootstrap_node|bool
|
||||||
|
- rabbitmq_res|bool
|
|
@ -149,7 +149,7 @@ outputs:
|
||||||
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
- if:
|
- if:
|
||||||
- internal_tls_enabled
|
- internal_tls_enabled
|
||||||
-
|
-
|
||||||
- list_join:
|
- list_join:
|
||||||
- ':'
|
- ':'
|
||||||
- - {get_param: InternalTLSCAFile}
|
- - {get_param: InternalTLSCAFile}
|
||||||
|
@ -157,7 +157,7 @@ outputs:
|
||||||
- 'ro'
|
- 'ro'
|
||||||
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
||||||
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
||||||
- null
|
- null
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
- KOLLA_BOOTSTRAP=True
|
- KOLLA_BOOTSTRAP=True
|
||||||
|
@ -190,7 +190,7 @@ outputs:
|
||||||
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
- /var/log/containers/rabbitmq:/var/log/rabbitmq
|
||||||
- if:
|
- if:
|
||||||
- internal_tls_enabled
|
- internal_tls_enabled
|
||||||
-
|
-
|
||||||
- list_join:
|
- list_join:
|
||||||
- ':'
|
- ':'
|
||||||
- - {get_param: InternalTLSCAFile}
|
- - {get_param: InternalTLSCAFile}
|
||||||
|
@ -198,7 +198,7 @@ outputs:
|
||||||
- 'ro'
|
- 'ro'
|
||||||
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
- /etc/pki/tls/certs/rabbitmq.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/rabbitmq.crt:ro
|
||||||
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
- /etc/pki/tls/private/rabbitmq.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/rabbitmq.key:ro
|
||||||
- null
|
- null
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
docker_puppet_tasks:
|
docker_puppet_tasks:
|
||||||
|
|
|
@ -16,5 +16,6 @@ resource_registry:
|
||||||
OS::TripleO::Services::Clustercheck: ../docker/services/pacemaker/clustercheck.yaml
|
OS::TripleO::Services::Clustercheck: ../docker/services/pacemaker/clustercheck.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../docker/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../docker/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::MySQL: ../docker/services/pacemaker/database/mysql.yaml
|
OS::TripleO::Services::MySQL: ../docker/services/pacemaker/database/mysql.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../docker/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../docker/services/pacemaker/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::Redis: ../docker/services/pacemaker/database/redis.yaml
|
OS::TripleO::Services::Redis: ../docker/services/pacemaker/database/redis.yaml
|
||||||
|
|
|
@ -18,7 +18,8 @@ resource_registry:
|
||||||
OS::TripleO::Services::NeutronCorePlugin: ../docker/services/neutron-plugin-ml2.yaml
|
OS::TripleO::Services::NeutronCorePlugin: ../docker/services/neutron-plugin-ml2.yaml
|
||||||
OS::TripleO::Services::NeutronDhcpAgent: ../docker/services/neutron-dhcp.yaml
|
OS::TripleO::Services::NeutronDhcpAgent: ../docker/services/neutron-dhcp.yaml
|
||||||
OS::TripleO::Services::NeutronServer: ../docker/services/neutron-api.yaml
|
OS::TripleO::Services::NeutronServer: ../docker/services/neutron-api.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../docker/services/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: ../docker/services/messaging/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::SwiftProxy: ../docker/services/swift-proxy.yaml
|
OS::TripleO::Services::SwiftProxy: ../docker/services/swift-proxy.yaml
|
||||||
OS::TripleO::Services::SwiftRingBuilder: ../docker/services/swift-ringbuilder.yaml
|
OS::TripleO::Services::SwiftRingBuilder: ../docker/services/swift-ringbuilder.yaml
|
||||||
OS::TripleO::Services::SwiftStorage: ../docker/services/swift-storage.yaml
|
OS::TripleO::Services::SwiftStorage: ../docker/services/swift-storage.yaml
|
||||||
|
@ -26,4 +27,4 @@ resource_registry:
|
||||||
|
|
||||||
parameter_defaults:
|
parameter_defaults:
|
||||||
ZaqarMessageStore: 'swift'
|
ZaqarMessageStore: 'swift'
|
||||||
ZaqarManagementStore: 'sqlalchemy'
|
ZaqarManagementStore: 'sqlalchemy'
|
||||||
|
|
|
@ -29,6 +29,8 @@ resource_registry:
|
||||||
OS::TripleO::Services::NeutronL3Agent: ../docker/services/neutron-l3.yaml
|
OS::TripleO::Services::NeutronL3Agent: ../docker/services/neutron-l3.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../docker/services/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../docker/services/haproxy.yaml
|
||||||
OS::TripleO::Services::MySQL: ../docker/services/database/mysql.yaml
|
OS::TripleO::Services::MySQL: ../docker/services/database/mysql.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingRpc: ../docker/services/messaging/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
OS::TripleO::Services::Qdr: ../docker/services/qdrouterd.yaml
|
OS::TripleO::Services::Qdr: ../docker/services/qdrouterd.yaml
|
||||||
OS::TripleO::Services::RabbitMQ: ../docker/services/rabbitmq.yaml
|
OS::TripleO::Services::RabbitMQ: ../docker/services/rabbitmq.yaml
|
||||||
OS::TripleO::Services::Redis: ../docker/services/database/redis.yaml
|
OS::TripleO::Services::Redis: ../docker/services/database/redis.yaml
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
# *******************************************************************
|
||||||
|
# This file was created automatically by the sample environment
|
||||||
|
# generator. Developers should use `tox -e genconfig` to update it.
|
||||||
|
# Users are recommended to make changes to a copy of the file instead
|
||||||
|
# of the original, if any customizations are needed.
|
||||||
|
# *******************************************************************
|
||||||
|
# title: Hybrid qdrouterd for rpc and rabbitmq for notify messaging backend
|
||||||
|
# description: |
|
||||||
|
# Include this environment to enable hybrid messaging backends for
|
||||||
|
# oslo.messaging rpc and notification services
|
||||||
|
parameter_defaults:
|
||||||
|
# The network port for messaging Notify backend
|
||||||
|
# Type: number
|
||||||
|
NotifyPort: 5672
|
||||||
|
|
||||||
|
# The network port for messaging backend
|
||||||
|
# Type: number
|
||||||
|
RpcPort: 31459
|
||||||
|
|
||||||
|
resource_registry:
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/messaging/rpc-qdrouterd.yaml
|
|
@ -0,0 +1,18 @@
|
||||||
|
# *******************************************************************
|
||||||
|
# This file was created automatically by the sample environment
|
||||||
|
# generator. Developers should use `tox -e genconfig` to update it.
|
||||||
|
# Users are recommended to make changes to a copy of the file instead
|
||||||
|
# of the original, if any customizations are needed.
|
||||||
|
# *******************************************************************
|
||||||
|
# title: Share single rabbitmq backend for rpc and notify messaging backend
|
||||||
|
# description: |
|
||||||
|
# Include this environment to enable a shared rabbitmq backend for
|
||||||
|
# oslo.messaging rpc and notification services
|
||||||
|
parameter_defaults:
|
||||||
|
# The network port for messaging backend
|
||||||
|
# Type: number
|
||||||
|
RpcPort: 5672
|
||||||
|
|
||||||
|
resource_registry:
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/messaging/rpc-rabbitmq.yaml
|
|
@ -61,6 +61,8 @@ parameters:
|
||||||
SaharaApiNetwork: internal_api
|
SaharaApiNetwork: internal_api
|
||||||
HorizonNetwork: internal_api
|
HorizonNetwork: internal_api
|
||||||
MemcachedNetwork: internal_api
|
MemcachedNetwork: internal_api
|
||||||
|
OsloMessagingRpcNetwork: internal_api
|
||||||
|
OsloMessagingNotifyNetwork: internal_api
|
||||||
RabbitmqNetwork: internal_api
|
RabbitmqNetwork: internal_api
|
||||||
QdrNetwork: internal_api
|
QdrNetwork: internal_api
|
||||||
RedisNetwork: internal_api
|
RedisNetwork: internal_api
|
||||||
|
|
|
@ -169,8 +169,10 @@ resource_registry:
|
||||||
OS::TripleO::Services::PacemakerRemote: OS::Heat::None
|
OS::TripleO::Services::PacemakerRemote: OS::Heat::None
|
||||||
OS::TripleO::Services::NeutronSriovAgent: OS::Heat::None
|
OS::TripleO::Services::NeutronSriovAgent: OS::Heat::None
|
||||||
OS::TripleO::Services::NeutronSriovHostConfig: OS::Heat::None
|
OS::TripleO::Services::NeutronSriovHostConfig: OS::Heat::None
|
||||||
OS::TripleO::Services::RabbitMQ: docker/services/rabbitmq.yaml
|
OS::TripleO::Services::OsloMessagingRpc: docker/services/messaging/rpc-rabbitmq.yaml
|
||||||
OS::TripleO::Services::Qdr: docker/services/qdrouterd.yaml
|
OS::TripleO::Services::OsloMessagingNotify: docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
|
OS::TripleO::Services::RabbitMQ: OS::Heat::None
|
||||||
|
OS::TripleO::Services::Qdr: OS::Heat::None
|
||||||
OS::TripleO::Services::HAproxy: docker/services/haproxy.yaml
|
OS::TripleO::Services::HAproxy: docker/services/haproxy.yaml
|
||||||
OS::TripleO::Services::HAProxyPublicTLS: OS::Heat::None
|
OS::TripleO::Services::HAProxyPublicTLS: OS::Heat::None
|
||||||
OS::TripleO::Services::HAProxyInternalTLS: OS::Heat::None
|
OS::TripleO::Services::HAProxyInternalTLS: OS::Heat::None
|
||||||
|
|
|
@ -38,24 +38,6 @@ parameters:
|
||||||
description: The password for the redis service account.
|
description: The password for the redis service account.
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
Debug:
|
Debug:
|
||||||
default: false
|
default: false
|
||||||
description: Set to True to enable debugging on all services.
|
description: Set to True to enable debugging on all services.
|
||||||
|
@ -76,6 +58,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: AodhDebug}, '']}
|
service_debug_unset: {equals : [{get_param: AodhDebug}, '']}
|
||||||
|
@ -104,10 +104,11 @@ outputs:
|
||||||
- {get_param: AodhDebug }
|
- {get_param: AodhDebug }
|
||||||
aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
|
aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
|
||||||
aodh::notification_driver: {get_param: NotificationDriver}
|
aodh::notification_driver: {get_param: NotificationDriver}
|
||||||
aodh::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
aodh::rabbit_password: {get_param: RabbitPassword}
|
aodh::rabbit_userid: {get_param: RpcUserName}
|
||||||
aodh::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
aodh::rabbit_password: {get_param: RpcPassword}
|
||||||
aodh::rabbit_port: {get_param: RabbitClientPort}
|
aodh::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
aodh::rabbit_port: {get_param: RpcPort}
|
||||||
aodh::keystone::authtoken::project_name: 'service'
|
aodh::keystone::authtoken::project_name: 'service'
|
||||||
aodh::keystone::authtoken::user_domain_name: 'Default'
|
aodh::keystone::authtoken::user_domain_name: 'Default'
|
||||||
aodh::keystone::authtoken::project_domain_name: 'Default'
|
aodh::keystone::authtoken::project_domain_name: 'Default'
|
||||||
|
|
|
@ -52,24 +52,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
default: 'regionOne'
|
default: 'regionOne'
|
||||||
description: Keystone region for endpoint
|
description: Keystone region for endpoint
|
||||||
RabbitClientPort:
|
|
||||||
default: 5672
|
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
|
||||||
type: number
|
|
||||||
RabbitClientUseSSL:
|
|
||||||
default: false
|
|
||||||
description: >
|
|
||||||
Rabbit client subscriber parameter to specify
|
|
||||||
an SSL connection to the RabbitMQ host.
|
|
||||||
type: string
|
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
type: string
|
|
||||||
EnableInternalTLS:
|
EnableInternalTLS:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -85,6 +67,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
|
@ -126,10 +126,11 @@ outputs:
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
- {get_param: BarbicanDebug }
|
- {get_param: BarbicanDebug }
|
||||||
barbican::api::notification_driver: {get_param: NotificationDriver}
|
barbican::api::notification_driver: {get_param: NotificationDriver}
|
||||||
barbican::api::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
barbican::api::rabbit_userid: {get_param: RabbitUserName}
|
barbican::api::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
barbican::api::rabbit_password: {get_param: RabbitPassword}
|
barbican::api::rabbit_userid: {get_param: RpcUserName}
|
||||||
barbican::api::rabbit_port: {get_param: RabbitClientPort}
|
barbican::api::rabbit_password: {get_param: RpcPassword}
|
||||||
|
barbican::api::rabbit_port: {get_param: RpcPort}
|
||||||
barbican::api::rabbit_heartbeat_timeout_threshold: 60
|
barbican::api::rabbit_heartbeat_timeout_threshold: 60
|
||||||
barbican::api::service_name: 'httpd'
|
barbican::api::service_name: 'httpd'
|
||||||
barbican::wsgi::apache::bind_host:
|
barbican::wsgi::apache::bind_host:
|
||||||
|
|
|
@ -84,24 +84,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
default: 'regionOne'
|
default: 'regionOne'
|
||||||
description: Keystone region for endpoint
|
description: Keystone region for endpoint
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
CeilometerApiEndpoint:
|
CeilometerApiEndpoint:
|
||||||
default: false
|
default: false
|
||||||
description: Whether to create or skip API endpoint. Set this to
|
description: Whether to create or skip API endpoint. Set this to
|
||||||
|
@ -125,6 +107,24 @@ parameters:
|
||||||
default: 'low'
|
default: 'low'
|
||||||
type: string
|
type: string
|
||||||
description: archive policy to use with gnocchi backend
|
description: archive policy to use with gnocchi backend
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
parameter_groups:
|
parameter_groups:
|
||||||
- label: deprecated
|
- label: deprecated
|
||||||
|
@ -173,10 +173,11 @@ outputs:
|
||||||
ceilometer::dispatcher::gnocchi::archive_policy: {get_param: GnocchiArchivePolicy}
|
ceilometer::dispatcher::gnocchi::archive_policy: {get_param: GnocchiArchivePolicy}
|
||||||
ceilometer::dispatcher::gnocchi::resources_definition_file: 'gnocchi_resources.yaml'
|
ceilometer::dispatcher::gnocchi::resources_definition_file: 'gnocchi_resources.yaml'
|
||||||
ceilometer::notification_driver: {get_param: NotificationDriver}
|
ceilometer::notification_driver: {get_param: NotificationDriver}
|
||||||
ceilometer::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
ceilometer::rabbit_password: {get_param: RabbitPassword}
|
ceilometer::rabbit_userid: {get_param: RpcUserName}
|
||||||
ceilometer::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
ceilometer::rabbit_password: {get_param: RpcPassword}
|
||||||
ceilometer::rabbit_port: {get_param: RabbitClientPort}
|
ceilometer::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
ceilometer::rabbit_port: {get_param: RpcPort}
|
||||||
ceilometer::rabbit_heartbeat_timeout_threshold: 60
|
ceilometer::rabbit_heartbeat_timeout_threshold: 60
|
||||||
ceilometer::telemetry_secret: {get_param: CeilometerMeteringSecret}
|
ceilometer::telemetry_secret: {get_param: CeilometerMeteringSecret}
|
||||||
ceilometer::snmpd_readonly_username: {get_param: SnmpdReadonlyUserName}
|
ceilometer::snmpd_readonly_username: {get_param: SnmpdReadonlyUserName}
|
||||||
|
|
|
@ -44,24 +44,6 @@ parameters:
|
||||||
description: Mapping of service endpoint -> protocol. Typically set
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
via parameter_defaults in the resource registry.
|
via parameter_defaults in the resource registry.
|
||||||
type: json
|
type: json
|
||||||
RabbitClientPort:
|
|
||||||
default: 5672
|
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
|
||||||
type: number
|
|
||||||
RabbitClientUseSSL:
|
|
||||||
default: false
|
|
||||||
description: >
|
|
||||||
Rabbit client subscriber parameter to specify
|
|
||||||
an SSL connection to the RabbitMQ host.
|
|
||||||
type: string
|
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
type: string
|
|
||||||
CinderCronDbPurgeMinute:
|
CinderCronDbPurgeMinute:
|
||||||
type: string
|
type: string
|
||||||
description: >
|
description: >
|
||||||
|
@ -102,6 +84,24 @@ parameters:
|
||||||
description: >
|
description: >
|
||||||
Cron to move deleted instances to another table - Log destination
|
Cron to move deleted instances to another table - Log destination
|
||||||
default: '/var/log/cinder/cinder-rowsflush.log'
|
default: '/var/log/cinder/cinder-rowsflush.log'
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: CinderDebug}, '']}
|
service_debug_unset: {equals : [{get_param: CinderDebug}, '']}
|
||||||
|
@ -127,11 +127,11 @@ outputs:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
- {get_param: CinderDebug }
|
- {get_param: CinderDebug }
|
||||||
cinder::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
|
||||||
cinder::rabbit_userid: {get_param: RabbitUserName}
|
|
||||||
cinder::rabbit_password: {get_param: RabbitPassword}
|
|
||||||
cinder::rabbit_port: {get_param: RabbitClientPort}
|
|
||||||
cinder::rabbit_heartbeat_timeout_threshold: 60
|
cinder::rabbit_heartbeat_timeout_threshold: 60
|
||||||
|
cinder::rabbit_userid: {get_param: RpcUserName}
|
||||||
|
cinder::rabbit_password: {get_param: RpcPassword}
|
||||||
|
cinder::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
cinder::rabbit_port: {get_param: RpcPort}
|
||||||
cinder::cron::db_purge::destination: '/dev/null'
|
cinder::cron::db_purge::destination: '/dev/null'
|
||||||
cinder::db::database_db_max_retries: -1
|
cinder::db::database_db_max_retries: -1
|
||||||
cinder::db::database_max_retries: -1
|
cinder::db::database_max_retries: -1
|
||||||
|
|
|
@ -48,24 +48,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
default: 'regionOne'
|
default: 'regionOne'
|
||||||
description: Keystone region for endpoint
|
description: Keystone region for endpoint
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
CongressPolicies:
|
CongressPolicies:
|
||||||
description: |
|
description: |
|
||||||
A hash of policies to configure for Congress.
|
A hash of policies to configure for Congress.
|
||||||
|
@ -78,6 +60,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: CongressDebug}, '']}
|
service_debug_unset: {equals : [{get_param: CongressDebug}, '']}
|
||||||
|
@ -106,10 +106,11 @@ outputs:
|
||||||
- {get_param: CongressDebug }
|
- {get_param: CongressDebug }
|
||||||
congress::rpc_backend: rabbit
|
congress::rpc_backend: rabbit
|
||||||
congress::notification_driver: {get_param: NotificationDriver}
|
congress::notification_driver: {get_param: NotificationDriver}
|
||||||
congress::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
congress::rabbit_password: {get_param: RabbitPassword}
|
congress::rabbit_userid: {get_param: RpcUserName}
|
||||||
congress::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
congress::rabbit_password: {get_param: RpcPassword}
|
||||||
congress::rabbit_port: {get_param: RabbitClientPort}
|
congress::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
congress::rabbit_port: {get_param: RpcPort}
|
||||||
congress::server::bind_host:
|
congress::server::bind_host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -131,24 +131,6 @@ parameters:
|
||||||
default: false
|
default: false
|
||||||
description: Whether to enable or not the Rbd backend for Nova
|
description: Whether to enable or not the Rbd backend for Nova
|
||||||
type: boolean
|
type: boolean
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
type: string
|
|
||||||
RabbitClientPort:
|
|
||||||
default: 5672
|
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
|
||||||
type: number
|
|
||||||
RabbitClientUseSSL:
|
|
||||||
default: false
|
|
||||||
description: >
|
|
||||||
Rabbit client subscriber parameter to specify
|
|
||||||
an SSL connection to the RabbitMQ host.
|
|
||||||
type: string
|
|
||||||
KeystoneRegion:
|
KeystoneRegion:
|
||||||
type: string
|
type: string
|
||||||
default: 'regionOne'
|
default: 'regionOne'
|
||||||
|
@ -165,6 +147,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
use_tls_proxy: {equals : [{get_param: EnableInternalTLS}, true]}
|
use_tls_proxy: {equals : [{get_param: EnableInternalTLS}, true]}
|
||||||
|
@ -284,10 +284,11 @@ outputs:
|
||||||
glance::backend::rbd::rbd_store_pool: {get_param: GlanceRbdPoolName}
|
glance::backend::rbd::rbd_store_pool: {get_param: GlanceRbdPoolName}
|
||||||
glance::backend::rbd::rbd_store_user: {get_param: CephClientUserName}
|
glance::backend::rbd::rbd_store_user: {get_param: CephClientUserName}
|
||||||
glance_backend: {get_param: GlanceBackend}
|
glance_backend: {get_param: GlanceBackend}
|
||||||
glance::notify::rabbitmq::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
glance::notify::rabbitmq::rabbit_port: {get_param: RabbitClientPort}
|
glance::notify::rabbitmq::rabbit_userid: {get_param: RpcUserName}
|
||||||
glance::notify::rabbitmq::rabbit_password: {get_param: RabbitPassword}
|
glance::notify::rabbitmq::rabbit_port: {get_param: RpcPort}
|
||||||
glance::notify::rabbitmq::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
glance::notify::rabbitmq::rabbit_password: {get_param: RpcPassword}
|
||||||
|
glance::notify::rabbitmq::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
glance::notify::rabbitmq::notification_driver: {get_param: NotificationDriver}
|
glance::notify::rabbitmq::notification_driver: {get_param: NotificationDriver}
|
||||||
tripleo::profile::base::glance::api::glance_nfs_enabled: {get_param: GlanceNfsEnabled}
|
tripleo::profile::base::glance::api::glance_nfs_enabled: {get_param: GlanceNfsEnabled}
|
||||||
tripleo::glance::nfs_mount::share: {get_param: GlanceNfsShare}
|
tripleo::glance::nfs_mount::share: {get_param: GlanceNfsShare}
|
||||||
|
|
|
@ -14,24 +14,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
ServiceData:
|
ServiceData:
|
||||||
default: {}
|
default: {}
|
||||||
description: Dictionary packing service data
|
description: Dictionary packing service data
|
||||||
|
@ -132,6 +114,24 @@ parameters:
|
||||||
default: ''
|
default: ''
|
||||||
description: Indicate whether this resource may be shared with the domain received in the request
|
description: Indicate whether this resource may be shared with the domain received in the request
|
||||||
"origin" header.
|
"origin" header.
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: HeatDebug}, '']}
|
service_debug_unset: {equals : [{get_param: HeatDebug}, '']}
|
||||||
|
@ -150,10 +150,11 @@ outputs:
|
||||||
- {}
|
- {}
|
||||||
- heat::cors::allowed_origin: {get_param: HeatCorsAllowedOrigin}
|
- heat::cors::allowed_origin: {get_param: HeatCorsAllowedOrigin}
|
||||||
- heat::notification_driver: {get_param: NotificationDriver}
|
- heat::notification_driver: {get_param: NotificationDriver}
|
||||||
heat::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
heat::rabbit_password: {get_param: RabbitPassword}
|
heat::rabbit_userid: {get_param: RpcUserName}
|
||||||
heat::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
heat::rabbit_password: {get_param: RpcPassword}
|
||||||
heat::rabbit_port: {get_param: RabbitClientPort}
|
heat::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
heat::rabbit_port: {get_param: RpcPort}
|
||||||
heat::debug:
|
heat::debug:
|
||||||
if:
|
if:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
|
|
|
@ -48,23 +48,23 @@ parameters:
|
||||||
description: The password for the Ironic service and db account, used by the Ironic services
|
description: The password for the Ironic service and db account, used by the Ironic services
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
RabbitUserName:
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
default: guest
|
default: guest
|
||||||
description: The username for RabbitMQ
|
description: The username for messaging backend
|
||||||
type: string
|
type: string
|
||||||
RabbitPassword:
|
RpcPassword:
|
||||||
description: The password for RabbitMQ
|
description: The password for messaging backend
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
RabbitClientPort:
|
RpcUseSSL:
|
||||||
default: 5672
|
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
|
||||||
type: number
|
|
||||||
RabbitClientUseSSL:
|
|
||||||
default: false
|
default: false
|
||||||
description: >
|
description: >
|
||||||
Rabbit client subscriber parameter to specify
|
Messaging client subscriber parameter to specify
|
||||||
an SSL connection to the RabbitMQ host.
|
an SSL connection to the messaging host.
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
|
@ -94,10 +94,11 @@ outputs:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
- {get_param: IronicDebug }
|
- {get_param: IronicDebug }
|
||||||
ironic::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
ironic::rabbit_password: {get_param: RabbitPassword}
|
ironic::rabbit_userid: {get_param: RpcUserName}
|
||||||
ironic::rabbit_port: {get_param: RabbitClientPort}
|
ironic::rabbit_password: {get_param: RpcPassword}
|
||||||
ironic::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
ironic::rabbit_port: {get_param: RpcPort}
|
||||||
|
ironic::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- default_rsc_unset
|
- default_rsc_unset
|
||||||
|
|
|
@ -91,24 +91,24 @@ parameters:
|
||||||
description: The keystone auth secret and db password.
|
description: The keystone auth secret and db password.
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
RabbitPassword:
|
RpcPort:
|
||||||
description: The password for RabbitMQ
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
RabbitUserName:
|
RpcUseSSL:
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
type: string
|
|
||||||
RabbitClientUseSSL:
|
|
||||||
default: false
|
default: false
|
||||||
description: >
|
description: >
|
||||||
Rabbit client subscriber parameter to specify
|
Messaging client subscriber parameter to specify
|
||||||
an SSL connection to the RabbitMQ host.
|
an SSL connection to the messaging host.
|
||||||
type: string
|
type: string
|
||||||
RabbitClientPort:
|
|
||||||
default: 5672
|
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
|
||||||
type: number
|
|
||||||
TokenExpiration:
|
TokenExpiration:
|
||||||
default: 3600
|
default: 3600
|
||||||
description: Set a token expiration time in seconds.
|
description: Set a token expiration time in seconds.
|
||||||
|
@ -377,10 +377,11 @@ outputs:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
- {get_param: KeystoneDebug }
|
- {get_param: KeystoneDebug }
|
||||||
keystone::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
keystone::rabbit_password: {get_param: RabbitPassword}
|
keystone::rabbit_userid: {get_param: RpcUserName}
|
||||||
keystone::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
keystone::rabbit_password: {get_param: RpcPassword}
|
||||||
keystone::rabbit_port: {get_param: RabbitClientPort}
|
keystone::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
keystone::rabbit_port: {get_param: RpcPort}
|
||||||
keystone::notification_driver: {get_param: NotificationDriver}
|
keystone::notification_driver: {get_param: NotificationDriver}
|
||||||
keystone::notification_format: {get_param: KeystoneNotificationFormat}
|
keystone::notification_format: {get_param: KeystoneNotificationFormat}
|
||||||
tripleo::profile::base::keystone::extra_notification_topics: {get_param: KeystoneNotificationTopics}
|
tripleo::profile::base::keystone::extra_notification_topics: {get_param: KeystoneNotificationTopics}
|
||||||
|
|
|
@ -44,24 +44,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
ManilaPassword:
|
ManilaPassword:
|
||||||
description: The password for the manila service account.
|
description: The password for the manila service account.
|
||||||
type: string
|
type: string
|
||||||
|
@ -72,6 +54,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: ManilaDebug}, '']}
|
service_debug_unset: {equals : [{get_param: ManilaDebug}, '']}
|
||||||
|
@ -84,10 +84,11 @@ outputs:
|
||||||
service_name: manila_base
|
service_name: manila_base
|
||||||
config_settings:
|
config_settings:
|
||||||
manila::notification_driver: {get_param: NotificationDriver}
|
manila::notification_driver: {get_param: NotificationDriver}
|
||||||
manila::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
manila::rabbit_password: {get_param: RabbitPassword}
|
manila::rabbit_userid: {get_param: RpcUserName}
|
||||||
manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
manila::rabbit_password: {get_param: RpcPassword}
|
||||||
manila::rabbit_port: {get_param: RabbitClientPort}
|
manila::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
manila::rabbit_port: {get_param: RpcPort}
|
||||||
manila::debug:
|
manila::debug:
|
||||||
if:
|
if:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
RabbitMQ service for messaging Notifications configured with Puppet
|
||||||
|
using a single shared rabbit backend
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the OsloMessagingNotify role.
|
||||||
|
value:
|
||||||
|
service_name: oslo_messaging_notify
|
||||||
|
global_config_settings:
|
||||||
|
oslo_messaging_notify_scheme: rabbit
|
||||||
|
oslo_messaging_notify_user_name: {get_param: RpcUserName}
|
||||||
|
oslo_messaging_notify_password: {get_param: RpcPassword}
|
||||||
|
oslo_messaging_notify_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
oslo_messaging_notify_port: {get_param: RpcPort}
|
|
@ -0,0 +1,145 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
RabbitMQ service for messaging Notifications configured with Puppet
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
NotifyPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging Notify backend
|
||||||
|
type: number
|
||||||
|
NotifyUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging Notifications
|
||||||
|
type: string
|
||||||
|
NotifyPassword:
|
||||||
|
description: The password for messaging Notifications
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
NotifyUseSSL:
|
||||||
|
default: false
|
||||||
|
description: Messaging Notification client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
EnableInternalTLS:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
resources:
|
||||||
|
RabbitMQServiceBase:
|
||||||
|
type: ../rabbitmq.yaml
|
||||||
|
properties:
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the OsloMessagingNotify role.
|
||||||
|
value:
|
||||||
|
service_name: oslo_messaging_notify
|
||||||
|
monitoring_subscription: {get_attr: [RabbitMQServiceBase, role_data, monitoring_subscription]}
|
||||||
|
global_config_settings:
|
||||||
|
map_merge:
|
||||||
|
- get_attr: [RabbitMQServiceBase, role_data, global_config_settings]
|
||||||
|
- oslo_messaging_notify_scheme: rabbit
|
||||||
|
oslo_messaging_notify_user_name: {get_param: NotifyUserName}
|
||||||
|
oslo_messaging_notify_password: {get_param: NotifyPassword}
|
||||||
|
oslo_messaging_notify_use_ssl: {get_param: NotifyUseSSL}
|
||||||
|
oslo_messaging_notify_port: {get_param: NotifyPort}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- get_attr: [RabbitMQServiceBase, role_data, config_settings]
|
||||||
|
- rabbitmq::default_user: {get_param: NotifyUserName}
|
||||||
|
rabbitmq::default_pass: {get_param: NotifyPassword}
|
||||||
|
tripleo.oslo_messaging_notify.firewall_rules:
|
||||||
|
'109 rabbitmq':
|
||||||
|
dport:
|
||||||
|
- 4369
|
||||||
|
- {get_param: NotifyPort}
|
||||||
|
- 25672
|
||||||
|
rabbitmq::port: {get_param: NotifyPort}
|
||||||
|
rabbitmq::interface:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
"%{hiera('$NETWORK')}"
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, OsloMessagingNotifyNetwork]}
|
||||||
|
rabbitmq::ssl: {get_param: EnableInternalTLS}
|
||||||
|
rabbitmq::ssl_erl_dist: {get_param: EnableInternalTLS}
|
||||||
|
rabbitmq::ssl_port: {get_param: NotifyPort}
|
||||||
|
rabbitmq::ssl_only: {get_param: EnableInternalTLS}
|
||||||
|
rabbitmq::ssl_interface:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
"%{hiera('$NETWORK')}"
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, OsloMessagingNotifyNetwork]}
|
||||||
|
tripleo::profile::base::rabbitmq::enable_internal_tls: {get_param: EnableInternalTLS}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
- generate_service_certificates: true
|
||||||
|
tripleo::profile::base::rabbitmq::certificate_specs:
|
||||||
|
service_certificate: '/etc/pki/tls/certs/rabbitmq.crt'
|
||||||
|
service_key: '/etc/pki/tls/private/rabbitmq.key'
|
||||||
|
hostname:
|
||||||
|
str_replace:
|
||||||
|
template: "%{hiera('fqdn_NETWORK')}"
|
||||||
|
params:
|
||||||
|
NETWORK: {get_param: [ServiceNetMap, OsloMessagingNotifyNetwork]}
|
||||||
|
principal:
|
||||||
|
str_replace:
|
||||||
|
template: "rabbitmq/%{hiera('fqdn_NETWORK')}"
|
||||||
|
params:
|
||||||
|
NETWORK: {get_param: [ServiceNetMap, OsloMessagingNotifyNetwork]}
|
||||||
|
- {}
|
||||||
|
step_config: |
|
||||||
|
include ::tripleo::profile::base::rabbitmq
|
||||||
|
upgrade_tasks:
|
||||||
|
- name: Stop rabbitmq service
|
||||||
|
when: step|int == 2
|
||||||
|
service: name=rabbitmq-server state=stopped
|
||||||
|
- name: Start rabbitmq service
|
||||||
|
when: step|int == 4
|
||||||
|
service: name=rabbitmq-server state=started
|
||||||
|
metadata_settings:
|
||||||
|
if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
-
|
||||||
|
- service: oslo_messaging_notify
|
||||||
|
network: {get_param: [ServiceNetMap, OsloMessagingNotifyNetwork]}
|
||||||
|
type: node
|
||||||
|
- null
|
|
@ -0,0 +1,101 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Qpid dispatch router service for messaging RPCs configured with Puppet
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
|
resources:
|
||||||
|
QdrouterdServiceBase:
|
||||||
|
type: ../qdr.yaml
|
||||||
|
properties:
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the OsloMessagingRpc role.
|
||||||
|
value:
|
||||||
|
service_name: oslo_messaging_rpc
|
||||||
|
monitoring_subscription: {get_attr: [QdrouterdServiceBase, role_data, monitoring_subscription]}
|
||||||
|
global_config_settings:
|
||||||
|
map_merge:
|
||||||
|
- get_attr: [QdrouterdServiceBase, role_data, global_config_settings]
|
||||||
|
- oslo_messaging_rpc_scheme: amqp
|
||||||
|
oslo_messaging_rpc_user_name: {get_param: RpcUserName}
|
||||||
|
oslo_messaging_rpc_password: {get_param: RpcPassword}
|
||||||
|
oslo_messaging_rpc_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
oslo_messaging_rpc_port: {get_param: RpcPort}
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- get_attr: [QdrouterdServiceBase, role_data, config_settings]
|
||||||
|
- tripleo.oslo_messaging_rpc.firewall_rules:
|
||||||
|
'109 qdrouterd':
|
||||||
|
dport:
|
||||||
|
- {get_param: RpcPort}
|
||||||
|
- 31459
|
||||||
|
- 31460
|
||||||
|
qdr::listener_addr:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
"%{hiera('$NETWORK')}"
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, OsloMessagingRpcNetwork]}
|
||||||
|
tripleo::profile::base::qdr::qdr_listener_port: {get_param: RpcPort}
|
||||||
|
tripleo::profile::base::qdr::qdr_username: {get_param: RpcUserName}
|
||||||
|
tripleo::profile::base::qdr::qdr_password: {get_param: RpcPassword}
|
||||||
|
step_config: |
|
||||||
|
include ::tripleo::profile::base::qdr
|
|
@ -0,0 +1,146 @@
|
||||||
|
heat_template_version: queens
|
||||||
|
|
||||||
|
description: >
|
||||||
|
RabbitMQ service for messaging RPCs configured with Puppet
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
ServiceData:
|
||||||
|
default: {}
|
||||||
|
description: Dictionary packing service data
|
||||||
|
type: json
|
||||||
|
ServiceNetMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service_name -> network name. Typically set
|
||||||
|
via parameter_defaults in the resource registry. This
|
||||||
|
mapping overrides those in ServiceNetMapDefaults.
|
||||||
|
type: json
|
||||||
|
DefaultPasswords:
|
||||||
|
default: {}
|
||||||
|
type: json
|
||||||
|
RoleName:
|
||||||
|
default: ''
|
||||||
|
description: Role name on which the service is applied
|
||||||
|
type: string
|
||||||
|
RoleParameters:
|
||||||
|
default: {}
|
||||||
|
description: Parameters specific to the role
|
||||||
|
type: json
|
||||||
|
EndpointMap:
|
||||||
|
default: {}
|
||||||
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
|
via parameter_defaults in the resource registry.
|
||||||
|
type: json
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
EnableInternalTLS:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
resources:
|
||||||
|
RabbitMQServiceBase:
|
||||||
|
type: ../rabbitmq.yaml
|
||||||
|
properties:
|
||||||
|
ServiceData: {get_param: ServiceData}
|
||||||
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
EndpointMap: {get_param: EndpointMap}
|
||||||
|
RoleName: {get_param: RoleName}
|
||||||
|
RoleParameters: {get_param: RoleParameters}
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the OsloMessagingRpc role.
|
||||||
|
value:
|
||||||
|
service_name: oslo_messaging_rpc
|
||||||
|
monitoring_subscription: {get_attr: [RabbitMQServiceBase, role_data, monitoring_subscription]}
|
||||||
|
global_config_settings:
|
||||||
|
map_merge:
|
||||||
|
- get_attr: [RabbitMQServiceBase, role_data, global_config_settings]
|
||||||
|
- oslo_messaging_rpc_scheme: rabbit
|
||||||
|
oslo_messaging_rpc_user_name: {get_param: RpcUserName}
|
||||||
|
oslo_messaging_rpc_password: {get_param: RpcPassword}
|
||||||
|
oslo_messaging_rpc_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
oslo_messaging_rpc_port: {get_param: RpcPort }
|
||||||
|
config_settings:
|
||||||
|
map_merge:
|
||||||
|
- get_attr: [RabbitMQServiceBase, role_data, config_settings]
|
||||||
|
- rabbitmq::default_user: {get_param: RpcUserName}
|
||||||
|
rabbitmq::default_pass: {get_param: RpcPassword}
|
||||||
|
tripleo.oslo_messaging_rpc.firewall_rules:
|
||||||
|
'109 rabbitmq':
|
||||||
|
dport:
|
||||||
|
- 4369
|
||||||
|
- {get_param: RpcPort}
|
||||||
|
- 25672
|
||||||
|
rabbitmq::port: {get_param: RpcPort}
|
||||||
|
rabbitmq::interface:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
"%{hiera('$NETWORK')}"
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, OsloMessagingRpcNetwork]}
|
||||||
|
rabbitmq::ssl: {get_param: EnableInternalTLS}
|
||||||
|
rabbitmq::ssl_erl_dist: {get_param: EnableInternalTLS}
|
||||||
|
rabbitmq::ssl_port: {get_param: RpcPort}
|
||||||
|
rabbitmq::ssl_only: {get_param: EnableInternalTLS}
|
||||||
|
rabbitmq::ssl_interface:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
"%{hiera('$NETWORK')}"
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, OsloMessagingRpcNetwork]}
|
||||||
|
tripleo::profile::base::rabbitmq::enable_internal_tls: {get_param: EnableInternalTLS}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
- generate_service_certificates: true
|
||||||
|
tripleo::profile::base::rabbitmq::certificate_specs:
|
||||||
|
service_certificate: '/etc/pki/tls/certs/rabbitmq.crt'
|
||||||
|
service_key: '/etc/pki/tls/private/rabbitmq.key'
|
||||||
|
hostname:
|
||||||
|
str_replace:
|
||||||
|
template: "%{hiera('fqdn_NETWORK')}"
|
||||||
|
params:
|
||||||
|
NETWORK: {get_param: [ServiceNetMap, OsloMessagingRpcNetwork]}
|
||||||
|
principal:
|
||||||
|
str_replace:
|
||||||
|
template: "rabbitmq/%{hiera('fqdn_NETWORK')}"
|
||||||
|
params:
|
||||||
|
NETWORK: {get_param: [ServiceNetMap, OsloMessagingRpcNetwork]}
|
||||||
|
- {}
|
||||||
|
step_config: |
|
||||||
|
include ::tripleo::profile::base::rabbitmq
|
||||||
|
upgrade_tasks:
|
||||||
|
- name: Stop rabbitmq service
|
||||||
|
when: step|int == 2
|
||||||
|
service: name=rabbitmq-server state=stopped
|
||||||
|
- name: Start rabbitmq service
|
||||||
|
when: step|int == 4
|
||||||
|
service: name=rabbitmq-server state=started
|
||||||
|
metadata_settings:
|
||||||
|
if:
|
||||||
|
- internal_tls_enabled
|
||||||
|
-
|
||||||
|
- service: oslo_messaging_rpc
|
||||||
|
network: {get_param: [ServiceNetMap, OsloMessagingRpcNetwork]}
|
||||||
|
type: node
|
||||||
|
- null
|
|
@ -41,24 +41,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
MistralPassword:
|
MistralPassword:
|
||||||
description: The password for the Mistral service and db account, used by the Mistral services.
|
description: The password for the Mistral service and db account, used by the Mistral services.
|
||||||
type: string
|
type: string
|
||||||
|
@ -73,6 +55,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: MistralDebug}, '']}
|
service_debug_unset: {equals : [{get_param: MistralDebug}, '']}
|
||||||
|
@ -94,10 +94,11 @@ outputs:
|
||||||
read_default_file: /etc/my.cnf.d/tripleo.cnf
|
read_default_file: /etc/my.cnf.d/tripleo.cnf
|
||||||
read_default_group: tripleo
|
read_default_group: tripleo
|
||||||
mistral::notification_driver: {get_param: NotificationDriver}
|
mistral::notification_driver: {get_param: NotificationDriver}
|
||||||
mistral::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
mistral::rabbit_password: {get_param: RabbitPassword}
|
mistral::rabbit_userid: {get_param: RpcUserName}
|
||||||
mistral::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
mistral::rabbit_password: {get_param: RpcPassword}
|
||||||
mistral::rabbit_port: {get_param: RabbitClientPort}
|
mistral::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
mistral::rabbit_port: {get_param: RpcPort}
|
||||||
mistral::debug:
|
mistral::debug:
|
||||||
if:
|
if:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
|
|
|
@ -4,24 +4,6 @@ description: >
|
||||||
OpenStack Neutron base service. Shared for all Neutron agents.
|
OpenStack Neutron base service. Shared for all Neutron agents.
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
DatabaseSyncTimeout:
|
DatabaseSyncTimeout:
|
||||||
default: 300
|
default: 300
|
||||||
description: DB Sync Timeout default
|
description: DB Sync Timeout default
|
||||||
|
@ -116,6 +98,24 @@ parameters:
|
||||||
EnableInternalTLS:
|
EnableInternalTLS:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
dhcp_agents_zero: {equals : [{get_param: NeutronDhcpAgentsPerNetwork}, 0]}
|
dhcp_agents_zero: {equals : [{get_param: NeutronDhcpAgentsPerNetwork}, 0]}
|
||||||
|
@ -129,11 +129,12 @@ outputs:
|
||||||
service_name: neutron_base
|
service_name: neutron_base
|
||||||
config_settings:
|
config_settings:
|
||||||
map_merge:
|
map_merge:
|
||||||
- neutron::rabbit_password: {get_param: RabbitPassword}
|
- neutron::notification_driver: {get_param: NotificationDriver}
|
||||||
neutron::rabbit_user: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
neutron::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
neutron::rabbit_password: {get_param: RpcPassword}
|
||||||
neutron::rabbit_port: {get_param: RabbitClientPort}
|
neutron::rabbit_user: {get_param: RpcUserName}
|
||||||
neutron::notification_driver: {get_param: NotificationDriver}
|
neutron::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
neutron::rabbit_port: {get_param: RpcPort}
|
||||||
neutron::core_plugin: {get_param: NeutronCorePlugin}
|
neutron::core_plugin: {get_param: NeutronCorePlugin}
|
||||||
neutron::service_plugins: {get_param: NeutronServicePlugins}
|
neutron::service_plugins: {get_param: NeutronServicePlugins}
|
||||||
neutron::debug:
|
neutron::debug:
|
||||||
|
|
|
@ -238,12 +238,12 @@ outputs:
|
||||||
mode: 0600
|
mode: 0600
|
||||||
content: >
|
content: >
|
||||||
$transport_url = os_transport_url({
|
$transport_url = os_transport_url({
|
||||||
'transport' => hiera('messaging_service_name', 'rabbit'),
|
'transport' => hiera('oslo_messaging_rpc_scheme', 'rabbit'),
|
||||||
'hosts' => any2array(hiera('rabbitmq_node_names', undef)),
|
'hosts' => any2array(hiera('oslo_messaging_rpc_node_names', undef)),
|
||||||
'port' => sprintf('%s',hiera('nova::rabbit_port', '5672') ),
|
'port' => sprintf('%s',hiera('oslo_messaging_rpc_port', '5672') ),
|
||||||
'username' => hiera('nova::rabbit_userid', 'guest'),
|
'username' => hiera('oslo_messaging_rpc_user_name', 'guest'),
|
||||||
'password' => hiera('nova::rabbit_password'),
|
'password' => hiera('oslo_messaging_rpc_password'),
|
||||||
'ssl' => sprintf('%s', bool2num(str2bool(hiera('nova::rabbit_use_ssl', '0'))))
|
'ssl' => sprintf('%s', bool2num(str2bool(hiera('oslo_messaging_rpc_use_ssl', '0'))))
|
||||||
})
|
})
|
||||||
oslo::messaging::default { 'nova_config':
|
oslo::messaging::default { 'nova_config':
|
||||||
transport_url => $transport_url
|
transport_url => $transport_url
|
||||||
|
|
|
@ -52,24 +52,6 @@ parameters:
|
||||||
default: 'br-int'
|
default: 'br-int'
|
||||||
description: Name of integration bridge used by Open vSwitch
|
description: Name of integration bridge used by Open vSwitch
|
||||||
type: string
|
type: string
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
DatabaseSyncTimeout:
|
DatabaseSyncTimeout:
|
||||||
default: 300
|
default: 300
|
||||||
description: DB Sync Timeout default
|
description: DB Sync Timeout default
|
||||||
|
@ -207,6 +189,24 @@ parameters:
|
||||||
description: >
|
description: >
|
||||||
Endpoint interface to be used for the placement API.
|
Endpoint interface to be used for the placement API.
|
||||||
default: 'internal'
|
default: 'internal'
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
|
|
||||||
|
@ -226,10 +226,11 @@ outputs:
|
||||||
"%{hiera('$NETWORK')}"
|
"%{hiera('$NETWORK')}"
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
||||||
nova::rabbit_password: {get_param: RabbitPassword}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
nova::rabbit_userid: {get_param: RabbitUserName}
|
nova::rabbit_password: {get_param: RpcPassword}
|
||||||
nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
nova::rabbit_userid: {get_param: RpcUserName}
|
||||||
nova::rabbit_port: {get_param: RabbitClientPort}
|
nova::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
nova::rabbit_port: {get_param: RpcPort}
|
||||||
nova::placement::project_name: 'service'
|
nova::placement::project_name: 'service'
|
||||||
nova::placement::password: {get_param: NovaPassword}
|
nova::placement::password: {get_param: NovaPassword}
|
||||||
nova::placement::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
nova::placement::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
||||||
|
@ -333,7 +334,8 @@ outputs:
|
||||||
# complex cell v2 configurations. For now, this is the default cell
|
# complex cell v2 configurations. For now, this is the default cell
|
||||||
# created for the cell v2 configuration
|
# created for the cell v2 configuration
|
||||||
nova::db::mysql_api::setup_cell0: true
|
nova::db::mysql_api::setup_cell0: true
|
||||||
nova::rabbit_password: {get_param: RabbitPassword}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
nova::rabbit_userid: {get_param: RabbitUserName}
|
nova::rabbit_password: {get_param: RpcPassword}
|
||||||
nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
nova::rabbit_userid: {get_param: RpcUserName}
|
||||||
nova::rabbit_port: {get_param: RabbitClientPort}
|
nova::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
nova::rabbit_port: {get_param: RpcPort}
|
||||||
|
|
|
@ -46,24 +46,24 @@ parameters:
|
||||||
description: >
|
description: >
|
||||||
Remove configuration that is not generated by TripleO. Used to avoid
|
Remove configuration that is not generated by TripleO. Used to avoid
|
||||||
configuration remnants after upgrades.
|
configuration remnants after upgrades.
|
||||||
RabbitPassword:
|
RpcPort:
|
||||||
description: The password for RabbitMQ
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
RabbitUserName:
|
RpcUseSSL:
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
type: string
|
|
||||||
RabbitClientUseSSL:
|
|
||||||
default: false
|
default: false
|
||||||
description: >
|
description: >
|
||||||
Rabbit client subscriber parameter to specify
|
Messaging client subscriber parameter to specify
|
||||||
an SSL connection to the RabbitMQ host.
|
an SSL connection to the messaging host.
|
||||||
type: string
|
type: string
|
||||||
RabbitClientPort:
|
|
||||||
default: 5672
|
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
|
||||||
type: number
|
|
||||||
NotificationDriver:
|
NotificationDriver:
|
||||||
type: string
|
type: string
|
||||||
default: 'messagingv2'
|
default: 'messagingv2'
|
||||||
|
@ -111,6 +111,7 @@ outputs:
|
||||||
value:
|
value:
|
||||||
service_name: octavia_base
|
service_name: octavia_base
|
||||||
config_settings:
|
config_settings:
|
||||||
|
|
||||||
map_merge:
|
map_merge:
|
||||||
- octavia::debug:
|
- octavia::debug:
|
||||||
if:
|
if:
|
||||||
|
@ -119,10 +120,11 @@ outputs:
|
||||||
- {get_param: OctaviaDebug }
|
- {get_param: OctaviaDebug }
|
||||||
octavia::purge_config: {get_param: EnableConfigPurge}
|
octavia::purge_config: {get_param: EnableConfigPurge}
|
||||||
octavia::notification_driver: {get_param: NotificationDriver}
|
octavia::notification_driver: {get_param: NotificationDriver}
|
||||||
octavia::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
octavia::rabbit_userid: {get_param: RabbitUserName}
|
octavia::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
octavia::rabbit_password: {get_param: RabbitPassword}
|
octavia::rabbit_userid: {get_param: RpcUserName}
|
||||||
octavia::rabbit_port: {get_param: RabbitClientPort}
|
octavia::rabbit_password: {get_param: RpcPassword}
|
||||||
|
octavia::rabbit_port: {get_param: RpcPort}
|
||||||
octavia::service_auth::auth_url: {get_param: [EndpointMap, KeystonePublic, uri]}
|
octavia::service_auth::auth_url: {get_param: [EndpointMap, KeystonePublic, uri]}
|
||||||
octavia::service_auth::auth_type: 'password'
|
octavia::service_auth::auth_type: 'password'
|
||||||
octavia::service_auth::username: 'octavia'
|
octavia::service_auth::username: 'octavia'
|
||||||
|
|
|
@ -30,24 +30,6 @@ parameters:
|
||||||
description: Mapping of service endpoint -> protocol. Typically set
|
description: Mapping of service endpoint -> protocol. Typically set
|
||||||
via parameter_defaults in the resource registry.
|
via parameter_defaults in the resource registry.
|
||||||
type: json
|
type: json
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
SaharaPassword:
|
SaharaPassword:
|
||||||
description: The password for the sahara service account, used by sahara-api.
|
description: The password for the sahara service account, used by sahara-api.
|
||||||
type: string
|
type: string
|
||||||
|
@ -72,6 +54,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: SaharaDebug}, '']}
|
service_debug_unset: {equals : [{get_param: SaharaDebug}, '']}
|
||||||
|
@ -93,10 +93,11 @@ outputs:
|
||||||
read_default_file: /etc/my.cnf.d/tripleo.cnf
|
read_default_file: /etc/my.cnf.d/tripleo.cnf
|
||||||
read_default_group: tripleo
|
read_default_group: tripleo
|
||||||
sahara::notify::notification_driver: {get_param: NotificationDriver}
|
sahara::notify::notification_driver: {get_param: NotificationDriver}
|
||||||
sahara::rabbit_password: {get_param: RabbitPassword}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
sahara::rabbit_user: {get_param: RabbitUserName}
|
sahara::rabbit_password: {get_param: RpcPassword}
|
||||||
sahara::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
sahara::rabbit_user: {get_param: RpcUserName}
|
||||||
sahara::rabbit_port: {get_param: RabbitClientPort}
|
sahara::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
sahara::rabbit_port: {get_param: RpcPort}
|
||||||
sahara::debug:
|
sahara::debug:
|
||||||
if:
|
if:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
|
|
|
@ -53,14 +53,6 @@ parameters:
|
||||||
MonitoringSubscriptionSwiftProxy:
|
MonitoringSubscriptionSwiftProxy:
|
||||||
default: 'overcloud-swift-proxy'
|
default: 'overcloud-swift-proxy'
|
||||||
type: string
|
type: string
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
type: string
|
|
||||||
SwiftCeilometerPipelineEnabled:
|
SwiftCeilometerPipelineEnabled:
|
||||||
description: Set to False to disable the swift proxy ceilometer pipeline.
|
description: Set to False to disable the swift proxy ceilometer pipeline.
|
||||||
default: false
|
default: false
|
||||||
|
@ -73,15 +65,23 @@ parameters:
|
||||||
description: Set to True to enable data-at-rest encryption in Swift
|
description: Set to True to enable data-at-rest encryption in Swift
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
RabbitClientPort:
|
RpcPort:
|
||||||
default: 5672
|
default: 5672
|
||||||
description: Set rabbit subscriber port, change this if using SSL
|
description: The network port for messaging backend
|
||||||
type: number
|
type: number
|
||||||
RabbitClientUseSSL:
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
default: false
|
default: false
|
||||||
description: >
|
description: >
|
||||||
Rabbit client subscriber parameter to specify
|
Messaging client subscriber parameter to specify
|
||||||
an SSL connection to the RabbitMQ host.
|
an SSL connection to the messaging host.
|
||||||
type: string
|
type: string
|
||||||
EnableInternalTLS:
|
EnableInternalTLS:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -144,18 +144,19 @@ outputs:
|
||||||
if:
|
if:
|
||||||
- ceilometer_pipeline_enabled
|
- ceilometer_pipeline_enabled
|
||||||
-
|
-
|
||||||
swift::proxy::ceilometer::rabbit_user: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
swift::proxy::ceilometer::rabbit_password: {get_param: RabbitPassword}
|
swift::proxy::ceilometer::rabbit_user: {get_param: RpcUserName}
|
||||||
|
swift::proxy::ceilometer::rabbit_password: {get_param: RpcPassword}
|
||||||
|
swift::proxy::ceilometer::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
swift::proxy::ceilometer::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
swift::proxy::ceilometer::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
||||||
swift::proxy::ceilometer::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
swift::proxy::ceilometer::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
|
||||||
swift::proxy::ceilometer::password: {get_param: SwiftPassword}
|
swift::proxy::ceilometer::password: {get_param: SwiftPassword}
|
||||||
swift::proxy::ceilometer::ignore_projects: {get_param: SwiftCeilometerIgnoreProjects}
|
swift::proxy::ceilometer::ignore_projects: {get_param: SwiftCeilometerIgnoreProjects}
|
||||||
swift::proxy::ceilometer::nonblocking_notify: true
|
swift::proxy::ceilometer::nonblocking_notify: true
|
||||||
swift::proxy::ceilometer::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
|
||||||
- {}
|
- {}
|
||||||
- swift::proxy::staticweb::url_base: {get_param: [EndpointMap, SwiftPublic, uri_no_suffix]}
|
- swift::proxy::staticweb::url_base: {get_param: [EndpointMap, SwiftPublic, uri_no_suffix]}
|
||||||
tripleo::profile::base::swift::proxy::rabbit_port: {get_param: RabbitClientPort}
|
tripleo::profile::base::swift::proxy::rabbit_port: {get_param: RpcPort}
|
||||||
tripleo::profile::base::swift::proxy::ceilometer_messaging_use_ssl: {get_param: RabbitClientUseSSL}
|
tripleo::profile::base::swift::proxy::ceilometer_messaging_use_ssl: {get_param: RpcUseSSL}
|
||||||
tripleo::profile::base::swift::proxy::ceilometer_enabled: {get_param: SwiftCeilometerPipelineEnabled}
|
tripleo::profile::base::swift::proxy::ceilometer_enabled: {get_param: SwiftCeilometerPipelineEnabled}
|
||||||
tripleo.swift_proxy.firewall_rules:
|
tripleo.swift_proxy.firewall_rules:
|
||||||
'122 swift proxy':
|
'122 swift proxy':
|
||||||
|
|
|
@ -48,24 +48,6 @@ parameters:
|
||||||
type: string
|
type: string
|
||||||
default: 'regionOne'
|
default: 'regionOne'
|
||||||
description: Keystone region for endpoint
|
description: Keystone region for endpoint
|
||||||
RabbitPassword:
|
|
||||||
description: The password for RabbitMQ
|
|
||||||
type: string
|
|
||||||
hidden: true
|
|
||||||
RabbitUserName:
|
|
||||||
default: guest
|
|
||||||
description: The username for RabbitMQ
|
|
||||||
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
|
|
||||||
TackerPolicies:
|
TackerPolicies:
|
||||||
description: |
|
description: |
|
||||||
A hash of policies to configure for Tacker.
|
A hash of policies to configure for Tacker.
|
||||||
|
@ -78,6 +60,24 @@ parameters:
|
||||||
description: Driver or drivers to handle sending notifications.
|
description: Driver or drivers to handle sending notifications.
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'messagingv2', 'noop' ]
|
- allowed_values: [ 'messagingv2', 'noop' ]
|
||||||
|
RpcPort:
|
||||||
|
default: 5672
|
||||||
|
description: The network port for messaging backend
|
||||||
|
type: number
|
||||||
|
RpcUserName:
|
||||||
|
default: guest
|
||||||
|
description: The username for messaging backend
|
||||||
|
type: string
|
||||||
|
RpcPassword:
|
||||||
|
description: The password for messaging backend
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
RpcUseSSL:
|
||||||
|
default: false
|
||||||
|
description: >
|
||||||
|
Messaging client subscriber parameter to specify
|
||||||
|
an SSL connection to the messaging host.
|
||||||
|
type: string
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
service_debug_unset: {equals : [{get_param: TackerDebug}, '']}
|
service_debug_unset: {equals : [{get_param: TackerDebug}, '']}
|
||||||
|
@ -105,12 +105,12 @@ outputs:
|
||||||
- service_debug_unset
|
- service_debug_unset
|
||||||
- {get_param: Debug }
|
- {get_param: Debug }
|
||||||
- {get_param: TackerDebug }
|
- {get_param: TackerDebug }
|
||||||
tacker::rpc_backend: rabbit
|
|
||||||
tacker::notification_driver: {get_param: NotificationDriver}
|
tacker::notification_driver: {get_param: NotificationDriver}
|
||||||
tacker::rabbit_userid: {get_param: RabbitUserName}
|
# TODO(ansmith): remove once p-t-o switches to oslo params
|
||||||
tacker::rabbit_password: {get_param: RabbitPassword}
|
tacker::rabbit_userid: {get_param: RpcUserName}
|
||||||
tacker::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
tacker::rabbit_password: {get_param: RpcPassword}
|
||||||
tacker::rabbit_port: {get_param: RabbitClientPort}
|
tacker::rabbit_use_ssl: {get_param: RpcUseSSL}
|
||||||
|
tacker::rabbit_port: {get_param: RpcPort}
|
||||||
tacker::server::bind_host:
|
tacker::server::bind_host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- Support separate oslo.messaging services for RPC and Notifications.
|
||||||
|
Enable separate messaging backend servers.
|
|
@ -152,7 +152,8 @@
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::PankoApi
|
- OS::TripleO::Services::PankoApi
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Redis
|
- OS::TripleO::Services::Redis
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::RsyslogSidecar
|
- OS::TripleO::Services::RsyslogSidecar
|
||||||
|
|
|
@ -145,7 +145,8 @@
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::PankoApi
|
- OS::TripleO::Services::PankoApi
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Redis
|
- OS::TripleO::Services::Redis
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::RsyslogSidecar
|
- OS::TripleO::Services::RsyslogSidecar
|
||||||
|
|
|
@ -123,7 +123,8 @@
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::PankoApi
|
- OS::TripleO::Services::PankoApi
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Redis
|
- OS::TripleO::Services::Redis
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::RsyslogSidecar
|
- OS::TripleO::Services::RsyslogSidecar
|
||||||
|
|
|
@ -136,7 +136,8 @@
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::PankoApi
|
- OS::TripleO::Services::PankoApi
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Redis
|
- OS::TripleO::Services::Redis
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::RsyslogSidecar
|
- OS::TripleO::Services::RsyslogSidecar
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
- name: Messaging
|
- name: Messaging
|
||||||
description: |
|
description: |
|
||||||
Standalone messaging role with RabbitMQ being managed via Pacemaker
|
Standalone messaging role with backends being managed via Pacemaker
|
||||||
networks:
|
networks:
|
||||||
- InternalApi
|
- InternalApi
|
||||||
HostnameFormatDefault: '%stackname%-messaging-%index%'
|
HostnameFormatDefault: '%stackname%-messaging-%index%'
|
||||||
|
@ -21,7 +21,8 @@
|
||||||
- OS::TripleO::Services::Ntp
|
- OS::TripleO::Services::Ntp
|
||||||
- OS::TripleO::Services::ContainersLogrotateCrond
|
- OS::TripleO::Services::ContainersLogrotateCrond
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::SensuClient
|
- OS::TripleO::Services::SensuClient
|
||||||
- OS::TripleO::Services::Snmp
|
- OS::TripleO::Services::Snmp
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
- OS::TripleO::Services::Novajoin
|
- OS::TripleO::Services::Novajoin
|
||||||
- OS::TripleO::Services::Ntp
|
- OS::TripleO::Services::Ntp
|
||||||
- OS::TripleO::Services::ContainersLogrotateCrond
|
- OS::TripleO::Services::ContainersLogrotateCrond
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::MasqueradeNetworks
|
- OS::TripleO::Services::MasqueradeNetworks
|
||||||
- OS::TripleO::Services::SwiftProxy
|
- OS::TripleO::Services::SwiftProxy
|
||||||
|
|
|
@ -29,7 +29,8 @@
|
||||||
- OS::TripleO::Services::NeutronApi
|
- OS::TripleO::Services::NeutronApi
|
||||||
- OS::TripleO::Services::NeutronCorePlugin
|
- OS::TripleO::Services::NeutronCorePlugin
|
||||||
- OS::TripleO::Services::NeutronDhcpAgent
|
- OS::TripleO::Services::NeutronDhcpAgent
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::MasqueradeNetworks
|
- OS::TripleO::Services::MasqueradeNetworks
|
||||||
- OS::TripleO::Services::SwiftProxy
|
- OS::TripleO::Services::SwiftProxy
|
||||||
|
|
|
@ -155,7 +155,8 @@
|
||||||
- OS::TripleO::Services::OVNController
|
- OS::TripleO::Services::OVNController
|
||||||
- OS::TripleO::Services::Pacemaker
|
- OS::TripleO::Services::Pacemaker
|
||||||
- OS::TripleO::Services::PankoApi
|
- OS::TripleO::Services::PankoApi
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Redis
|
- OS::TripleO::Services::Redis
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::RsyslogSidecar
|
- OS::TripleO::Services::RsyslogSidecar
|
||||||
|
|
|
@ -51,7 +51,8 @@
|
||||||
- OS::TripleO::Services::Novajoin
|
- OS::TripleO::Services::Novajoin
|
||||||
- OS::TripleO::Services::Ntp
|
- OS::TripleO::Services::Ntp
|
||||||
- OS::TripleO::Services::ContainersLogrotateCrond
|
- OS::TripleO::Services::ContainersLogrotateCrond
|
||||||
- OS::TripleO::Services::RabbitMQ
|
- OS::TripleO::Services::OsloMessagingRpc
|
||||||
|
- OS::TripleO::Services::OsloMessagingNotify
|
||||||
- OS::TripleO::Services::Rhsm
|
- OS::TripleO::Services::Rhsm
|
||||||
- OS::TripleO::Services::MasqueradeNetworks
|
- OS::TripleO::Services::MasqueradeNetworks
|
||||||
- OS::TripleO::Services::SwiftProxy
|
- OS::TripleO::Services::SwiftProxy
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
environments:
|
||||||
|
-
|
||||||
|
name: messaging/rpc-rabbitmq-notify-rabbitmq-shared
|
||||||
|
title: Share single rabbitmq backend for rpc and notify messaging backend
|
||||||
|
files:
|
||||||
|
puppet/services/messaging/rpc-rabbitmq.yaml:
|
||||||
|
parameters:
|
||||||
|
- RpcPort
|
||||||
|
sample_value:
|
||||||
|
RpcPort: 5672
|
||||||
|
resource_registry:
|
||||||
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/messaging/rpc-rabbitmq.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq-shared.yaml
|
||||||
|
description: |
|
||||||
|
Include this environment to enable a shared rabbitmq backend for
|
||||||
|
oslo.messaging rpc and notification services
|
||||||
|
-
|
||||||
|
name: messaging/rpc-qdrouterd-notify-rabbitmq-hybrid
|
||||||
|
title: Hybrid qdrouterd for rpc and rabbitmq for notify messaging backend
|
||||||
|
files:
|
||||||
|
puppet/services/messaging/rpc-qdrouterd.yaml:
|
||||||
|
parameters:
|
||||||
|
- RpcPort
|
||||||
|
puppet/services/messaging/notify-rabbitmq.yaml:
|
||||||
|
parameters:
|
||||||
|
- NotifyPort
|
||||||
|
sample_values:
|
||||||
|
RpcPort: 31459
|
||||||
|
NotifyPort: 5672
|
||||||
|
resource_registry:
|
||||||
|
OS::TripleO::Services::OsloMessagingRpc: ../../docker/services/messaging/rpc-qdrouterd.yaml
|
||||||
|
OS::TripleO::Services::OsloMessagingNotify: ../../docker/services/messaging/notify-rabbitmq.yaml
|
||||||
|
description: |
|
||||||
|
Include this environment to enable hybrid messaging backends for
|
||||||
|
oslo.messaging rpc and notification services
|
|
@ -150,12 +150,29 @@ PREFERRED_CAMEL_CASE = {
|
||||||
VALIDATE_PUPPET_OVERRIDE = {
|
VALIDATE_PUPPET_OVERRIDE = {
|
||||||
# docker/service/sshd.yaml is a variation of the puppet sshd service
|
# docker/service/sshd.yaml is a variation of the puppet sshd service
|
||||||
'./docker/services/sshd.yaml': True,
|
'./docker/services/sshd.yaml': True,
|
||||||
|
# docker/services/messaging/*.yaml provide oslo_messaging services
|
||||||
|
'./docker/services/messaging/notify-rabbitmq-shared.yaml': False,
|
||||||
|
'./docker/services/messaging/notify-rabbitmq.yaml': False,
|
||||||
|
'./docker/services/messaging/rpc-rabbitmq.yaml': False,
|
||||||
|
'./docker/services/messaging/rpc-qdrouterd.yaml': False,
|
||||||
|
# docker/services/pacemaker/*-rabbitmq.yaml provide oslo_messaging services
|
||||||
|
'./docker/services/pacemaker/notify-rabbitmq.yaml': False,
|
||||||
|
'./docker/services/pacemaker/rpc-rabbitmq.yaml': False,
|
||||||
# qdr aliases rabbitmq service to provide alternative messaging backend
|
# qdr aliases rabbitmq service to provide alternative messaging backend
|
||||||
'./puppet/services/qdr.yaml': False,
|
'./puppet/services/qdr.yaml': False,
|
||||||
|
# puppet/services/messaging/*.yaml provide oslo_messaging services
|
||||||
|
'./puppet/services/messaging/notify-rabbitmq-shared.yaml': False,
|
||||||
|
'./puppet/services/messaging/notify-rabbitmq.yaml': False,
|
||||||
|
'./puppet/services/messaging/rpc-rabbitmq.yaml': False,
|
||||||
|
'./puppet/services/messaging/rpc-qdrouterd.yaml': False,
|
||||||
|
|
||||||
}
|
}
|
||||||
VALIDATE_DOCKER_OVERRIDE = {
|
VALIDATE_DOCKER_OVERRIDE = {
|
||||||
# docker/service/sshd.yaml is a variation of the puppet sshd service
|
# docker/service/sshd.yaml is a variation of the puppet sshd service
|
||||||
'./docker/services/sshd.yaml': False,
|
'./docker/services/sshd.yaml': False,
|
||||||
|
# docker/services/messaging/notify-rabbitmq-shared.yaml does not
|
||||||
|
# deploy container
|
||||||
|
'./docker/services/messaging/notify-rabbitmq-shared.yaml': False,
|
||||||
}
|
}
|
||||||
DEPLOYMENT_RESOURCE_TYPES = [
|
DEPLOYMENT_RESOURCE_TYPES = [
|
||||||
'OS::Heat::SoftwareDeploymentGroup',
|
'OS::Heat::SoftwareDeploymentGroup',
|
||||||
|
|
Loading…
Reference in New Issue