Merge "Retain existing ComputeHostnameFormat when upgrading older envs"
[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   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   RabbitUserName:
13     default: guest
14     description: The username for RabbitMQ
15     type: string
16   RabbitPassword:
17     description: The password for RabbitMQ
18     type: string
19     hidden: true
20   RabbitFDLimit:
21     default: 65536
22     description: Configures RabbitMQ FD limit
23     type: string
24   RabbitIPv6:
25     default: false
26     description: Enable IPv6 in RabbitMQ
27     type: boolean
28
29 outputs:
30   role_data:
31     description: Role data for the RabbitMQ role.
32     value:
33       service_name: rabbitmq
34       config_settings:
35         rabbitmq::file_limit: {get_param: RabbitFDLimit}
36         rabbitmq::default_user: {get_param: RabbitUserName}
37         rabbitmq::default_pass: {get_param: RabbitPassword}
38         rabbit_ipv6: {get_param: RabbitIPv6}
39         tripleo.rabbitmq.firewall_rules:
40           '109 rabbitmq':
41             dport:
42               - 4369
43               - 5672
44               - 35672
45         rabbitmq::delete_guest_user: false
46         rabbitmq::wipe_db_on_cookie_change: true
47         rabbitmq::port: '5672'
48         rabbitmq::package_source: undef
49         rabbitmq::repos_ensure: false
50         rabbitmq_environment:
51           RABBITMQ_NODENAME: "rabbit@%{::hostname}"
52           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>>}]"'
53         rabbitmq_kernel_variables:
54           inet_dist_listen_min: '35672'
55           inet_dist_listen_max: '35672'
56         rabbitmq_config_variables:
57           tcp_listen_options: '[binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}, {keepalive, true}]'
58           cluster_partition_handling: 'pause_minority'
59           loopback_users: '[]'
60       step_config: |
61         include ::tripleo::profile::base::rabbitmq