ansible-role-rabbitmq/templates/etc/rabbitmq/rabbitmq.conf.j2

54 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2020-12-30 02:40:15 +00:00
listeners.ssl.default = 5671
listeners.tcp.default = 5672
num_acceptors.tcp = 10
num_acceptors.ssl = 10
reverse_dns_lookups = true
ssl_options.verify = verify_peer
ssl_options.fail_if_no_peer_cert = false
ssl_options.cacertfile = {{ rabbitmq_tls_ca_cert }}
ssl_options.certfile = {{ rabbitmq_tls_cert }}
ssl_options.keyfile = {{ rabbitmq_tls_key }}
# Authentication Backends
auth_backends.1.authn = ldap
auth_backends.1.authz = internal
auth_backends.2 = internal
auth_mechanisms.1 = PLAIN
auth_mechanisms.1 = EXTERNAL
2021-02-14 02:53:47 +00:00
auth_mechanisms.2 = PLAIN
2020-12-30 02:40:15 +00:00
auth_mechanisms.2 = EXTERNAL
ssl_cert_login_from = common_name
2021-01-23 06:28:06 +00:00
auth_ldap.dn_lookup_bind.user_dn = {{ rabbitmq_ldap_bind_dn }}
auth_ldap.dn_lookup_bind.password = {{ rabbitmq_ldap_bind_pw }}
2020-12-30 02:40:15 +00:00
auth_ldap.dn_lookup_attribute = uid
2021-01-23 06:28:06 +00:00
auth_ldap.dn_lookup_base = {{ rabbitmq_ldap_basedn }}
2020-12-30 02:40:15 +00:00
auth_ldap.port = 389
2020-12-30 04:17:39 +00:00
auth_ldap.connection_pool_size = 256
auth_ldap.idle_timeout = 120000
auth_ldap.use_starttls = true
2020-12-30 02:40:15 +00:00
{% for ldapsrv in rabbitmq_ldap_servers %}
auth_ldap.servers.{{ loop.index }} = {{ ldapsrv }}
{% endfor %}
cluster_name = {{ rabbitmq_cluster_name }}
password_hashing_module = rabbit_password_hashing_sha256
2020-12-30 04:25:27 +00:00
cluster_partition_handling = autoheal
2020-12-30 02:40:15 +00:00
cluster_formation.node_type = disc
2021-03-10 03:58:45 +00:00
cluster_formation.peer_discovery_backend = classic_config
2020-12-30 02:40:15 +00:00
product.name = RockyMQ!
product.version = 0.0.1
2021-01-22 04:31:21 +00:00
#disk_free_limit.relative = 2.0
disk_free_limit.absolute = 2GB
2020-12-30 04:25:27 +00:00
# Cluster Nodes
{% for mqsrv in rabbitmq_cluster_list %}
2021-03-12 03:17:59 +00:00
cluster_formation.classic_config.nodes.{{ loop.index }} = rabbit@{{ mqsrv }}
2020-12-30 04:25:27 +00:00
{% endfor %}