Merge "Containerize HAProxy for HA"
[apex-tripleo-heat-templates.git] / puppet / services / qdr.yaml
1 heat_template_version: pike
2
3 description: >
4   Qpid dispatch router service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   RabbitUserName:
30     default: guest
31     description: The username for Qdr
32     type: string
33   RabbitPassword:
34     description: The password for Qdr
35     type: string
36     hidden: true
37   RabbitClientPort:
38     description: Listening port for Qdr
39     default: 5672
40     type: number
41   MonitoringSubscriptionQdr:
42     default: 'overcloud-qdr'
43     type: string
44
45 outputs:
46   role_data:
47     description: Role data for the Qdr role.
48     value:
49       service_name: rabbitmq
50       monitoring_subscription: {get_param: MonitoringSubscriptionQdr}
51       global_config_settings:
52         messaging_notify_service_name: 'amqp'
53         messaging_rpc_service_name: 'amqp'
54         keystone::messaging::amqp::amqp_pre_settled: 'notify'
55       config_settings:
56         tripleo.rabbitmq.firewall_rules:
57           '109 qdr':
58             dport:
59               - {get_param: RabbitClientPort}
60         qdr::listener_addr: {get_param: [ServiceNetMap, QdrNetwork]}
61         # cannot pass qdr::listener_port directly because it needs to be a string
62         # we do the conversion in the puppet layer
63         tripleo::profile::base::qdr::qdr_listener_port: {get_param: RabbitClientPort}
64         tripleo::profile::base::qdr::qdr_username: {get_param: RabbitUserName}
65         tripleo::profile::base::qdr::qdr_password: {get_param: RabbitPassword}
66
67       step_config: |
68         include ::tripleo::profile::base::qdr