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

cannot generate right retry_join string #57

Closed
kostyrev opened this issue Dec 21, 2014 · 2 comments
Closed

cannot generate right retry_join string #57

kostyrev opened this issue Dec 21, 2014 · 2 comments

Comments

@kostyrev
Copy link

the only directive consul accepts looks like

"retry_join": ["test-cluster-vm.example.org"],

With this module I cannot get that string in config file, because it is generating something else all the time, for example

"retry_join": "[\"test-cluster-vm.caravan.dmz\"]",

when in puppet manifest I specify

 'retry_join'  => '["test-cluster-vm.example.org"]'

@solarkennedy
Copy link
Contributor

This should be an array in JSON, so:

$config = {
  'retry_join' => [ 'test' ],
}

Should make the resulting config end up in the way that consul wants.

However, I recently changed the way the JSON is deployed for #45, it may be just wrong.

If that is the case, then it sounds like I need a test case to cover this?

Can you give me more context, like a pastebin of the full puppet code and a pastebin of the output consul config?

@kostyrev
Copy link
Author

Yep, it's working now. I specify it exactly as your example. Thanks!

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

No branches or pull requests

2 participants