Merge "Pass ServiceNetMap to services"
[apex-tripleo-heat-templates.git] / puppet / services / rabbitmq.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   RabbitMQ 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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   RabbitUserName:
19     default: guest
20     description: The username for RabbitMQ
21     type: string
22   RabbitPassword:
23     description: The password for RabbitMQ
24     type: string
25     hidden: true
26   RabbitFDLimit:
27     default: 65536
28     description: Configures RabbitMQ FD limit
29     type: string
30   RabbitIPv6:
31     default: false
32     description: Enable IPv6 in RabbitMQ
33     type: boolean
34
35 outputs:
36   role_data:
37     description: Role data for the RabbitMQ role.
38     value:
39       service_name: rabbitmq
40       config_settings:
41         rabbitmq::file_limit: {get_param: RabbitFDLimit}
42         rabbitmq::default_user: {get_param: RabbitUserName}
43         rabbitmq::default_pass: {get_param: RabbitPassword}
44         rabbit_ipv6: {get_param: RabbitIPv6}
45         tripleo.rabbitmq.firewall_rules:
46           '109 rabbitmq':
47             dport:
48               - 4369
49               - 5672
50               - 35672
51         rabbitmq::delete_guest_user: false
52         rabbitmq::wipe_db_on_cookie_change: true
53         rabbitmq::port: '5672'
54         rabbitmq::package_source: undef
55         rabbitmq::repos_ensure: false
56         rabbitmq_environment:
57           RABBITMQ_NODENAME: "rabbit@%{::hostname}"
58           RABBITMQ_SERVER_ERL_ARGS: '"+K true +A30 +P 1048576 -kernel inet_default_connect_options [{nodelay,true},{raw,6,18,<<5000:64/native>>}] -kernel inet_default_listen_options [{raw,6,18,<<5000:64/native>>}]"'
59         rabbitmq_kernel_variables:
60           inet_dist_listen_min: '35672'
61           inet_dist_listen_max: '35672'
62         rabbitmq_config_variables:
63           tcp_listen_options: '[binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}, {keepalive, true}]'
64           cluster_partition_handling: 'pause_minority'
65           loopback_users: '[]'
66       step_config: |
67         include ::tripleo::profile::base::rabbitmq