Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   RabbitUserName:
34     default: guest
35     description: The username for RabbitMQ
36     type: string
37   RabbitPassword:
38     description: The password for RabbitMQ
39     type: string
40     hidden: true
41   RabbitClientPort:
42     description: Set rabbit subscriber port, change this if using SSL
43     default: 5672
44     type: number
45   MonitoringSubscriptionQdr:
46     default: 'overcloud-qdr'
47     type: string
48
49 outputs:
50   role_data:
51     description: Role data for the Qdr role.
52     value:
53       service_name: rabbitmq
54       monitoring_subscription: {get_param: MonitoringSubscriptionQdr}
55       global_config_settings:
56         messaging_notify_service_name: 'amqp'
57         messaging_rpc_service_name: 'amqp'
58         keystone::messaging::amqp::amqp_pre_settled: 'notify'
59       config_settings:
60         tripleo.rabbitmq.firewall_rules:
61           '109 qdr':
62             dport:
63               - {get_param: RabbitClientPort}
64         qdr::listener_addr: {get_param: [ServiceNetMap, QdrNetwork]}
65         # cannot pass qdr::listener_port directly because it needs to be a string
66         # we do the conversion in the puppet layer
67         tripleo::profile::base::qdr::qdr_listener_port: {get_param: RabbitClientPort}
68         tripleo::profile::base::qdr::qdr_username: {get_param: RabbitUserName}
69         tripleo::profile::base::qdr::qdr_password: {get_param: RabbitPassword}
70
71       step_config: |
72         include ::tripleo::profile::base::qdr