Merge "Updates and fixes to NIC config template routes"
[apex-tripleo-heat-templates.git] / puppet / services / rabbitmq.yaml
1 heat_template_version: 2016-10-14
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   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   RabbitUserName:
22     default: guest
23     description: The username for RabbitMQ
24     type: string
25   RabbitPassword:
26     description: The password for RabbitMQ
27     type: string
28     hidden: true
29   RabbitFDLimit:
30     default: 65536
31     description: Configures RabbitMQ FD limit
32     type: string
33   RabbitIPv6:
34     default: false
35     description: Enable IPv6 in RabbitMQ
36     type: boolean
37   RabbitCookie:
38     type: string
39     default: ''
40     hidden: true
41
42 outputs:
43   role_data:
44     description: Role data for the RabbitMQ role.
45     value:
46       service_name: rabbitmq
47       config_settings:
48         rabbitmq::file_limit: {get_param: RabbitFDLimit}
49         rabbitmq::default_user: {get_param: RabbitUserName}
50         rabbitmq::default_pass: {get_param: RabbitPassword}
51         rabbit_ipv6: {get_param: RabbitIPv6}
52         tripleo.rabbitmq.firewall_rules:
53           '109 rabbitmq':
54             dport:
55               - 4369
56               - 5672
57               - 35672
58         rabbitmq::delete_guest_user: false
59         rabbitmq::wipe_db_on_cookie_change: true
60         rabbitmq::port: '5672'
61         rabbitmq::package_source: undef
62         rabbitmq::repos_ensure: false
63         rabbitmq_environment:
64           RABBITMQ_NODENAME: "rabbit@%{::hostname}"
65           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>>}]"'
66         rabbitmq_kernel_variables:
67           inet_dist_listen_min: '35672'
68           inet_dist_listen_max: '35672'
69         rabbitmq_config_variables:
70           tcp_listen_options: '[binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}, {keepalive, true}]'
71           cluster_partition_handling: 'pause_minority'
72           loopback_users: '[]'
73         rabbitmq::erlang_cookie:
74           yaql:
75             expression: $.data.passwords.where($ != '').first()
76             data:
77               passwords:
78                 - {get_param: RabbitCookie}
79                 - {get_param: [DefaultPasswords, rabbit_cookie]}
80         # NOTE: bind IP is found in Heat replacing the network name with the
81         # local node IP for the given network; replacement examples
82         # (eg. for internal_api):
83         # internal_api -> IP
84         # internal_api_uri -> [IP]
85         # internal_api_subnet - > IP/CIDR
86         rabbitmq::node_ip_address: {get_param: [ServiceNetMap, RabbitmqNetwork]}
87       step_config: |
88         include ::tripleo::profile::base::rabbitmq