Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbitmq_config error generating single quote value #4

Open
Raffaello opened this issue Jul 27, 2017 · 2 comments · May be fixed by #5
Open

rabbitmq_config error generating single quote value #4

Raffaello opened this issue Jul 27, 2017 · 2 comments · May be fixed by #5

Comments

@Raffaello
Copy link
Collaborator

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
Copy link
Collaborator Author

already reported there:
picotrading/config-encoder-macros#3

@Raffaello
Copy link
Collaborator Author

this seems the solution:

picotrading/ansible-rabbitmq#1

@Raffaello Raffaello reopened this Jul 27, 2017
@Raffaello Raffaello linked a pull request Jul 27, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant