Add DefaultPasswords to composable 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   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
38 outputs:
39   role_data:
40     description: Role data for the RabbitMQ role.
41     value:
42       service_name: rabbitmq
43       config_settings:
44         rabbitmq::file_limit: {get_param: RabbitFDLimit}
45         rabbitmq::default_user: {get_param: RabbitUserName}
46         rabbitmq::default_pass: {get_param: RabbitPassword}
47         rabbit_ipv6: {get_param: RabbitIPv6}
48         tripleo.rabbitmq.firewall_rules:
49           '109 rabbitmq':
50             dport:
51               - 4369
52               - 5672
53               - 35672
54         rabbitmq::delete_guest_user: false
55         rabbitmq::wipe_db_on_cookie_change: true
56         rabbitmq::port: '5672'
57         rabbitmq::package_source: undef
58         rabbitmq::repos_ensure: false
59         rabbitmq_environment:
60           RABBITMQ_NODENAME: "rabbit@%{::hostname}"
61           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>>}]"'
62         rabbitmq_kernel_variables:
63           inet_dist_listen_min: '35672'
64           inet_dist_listen_max: '35672'
65         rabbitmq_config_variables:
66           tcp_listen_options: '[binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}, {keepalive, true}]'
67           cluster_partition_handling: 'pause_minority'
68           loopback_users: '[]'
69       step_config: |
70         include ::tripleo::profile::base::rabbitmq