ansible-role-rabbitmq icon indicating copy to clipboard operation
ansible-role-rabbitmq copied to clipboard

rabbitmq_config error generating single quote value

Open Raffaello opened this issue 8 years ago • 2 comments

the library config-encoder-macros is not able to generate single quote value for rabbitmq config, it means it will generate wrong configuration file.

It leads to not possible to configure correctly rabbitmq.

e.g.:

rabbitmq_config:
      - rabbit:
        - ssl_listeners:
          - 5671
        - ssl_options:
          - versions:
            - 'tlsv1.2'

the output is:

%
% This file is managed by Ansible.
% Do not edit this file manually.
% Any changes will be automatically reverted.
%

[
  {rabbit, [
      {ssl_listeners, [
        5671
      ]},
      {ssl_options, [
          {versions, [
            "tlsv1.2"
          ]}
      ]}
  ]}
].

please notice "tlsv1.2" instead of 'tlsv1.2' double quoted instead of single quoted.

and it is invalid config for rabbitmq

Raffaello avatar Jul 27 '17 16:07 Raffaello

already reported there: https://github.com/picotrading/config-encoder-macros/issues/3

Raffaello avatar Jul 27 '17 16:07 Raffaello

this seems the solution:

https://github.com/picotrading/ansible-rabbitmq/issues/1

Raffaello avatar Jul 27 '17 16:07 Raffaello