-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
fix 'consul reload' on custom rpc port #179
fix 'consul reload' on custom rpc port #179
Conversation
@@ -13,6 +13,9 @@ | |||
exec { 'reload consul service': | |||
path => [$consul::bin_dir,'/bin','/usr/bin'], | |||
command => 'consul reload', | |||
environment => [ | |||
"CONSUL_RPC_ADDR=${consul::rpc_addr}:${consul::rpc_port}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just do this as part of the command?
command => "consul reload -rpc-addr=${consul::rpc_addr}:${consul::rpc_port}",
@ericpfisher pointed out that, if we used the environment variable rather than the flag, we could probably make the init scripts cleaner. |
@mdelagrange Can we add a test for the Also it would be awesome, but not required, if we can add a test for the
Hmmm perhaps but I prefer if we are explicit with the flag since this module is used across various systems and I don't want something to fail because of an env var issue 😕 |
OK |
All set. |
@mdelagrange this looks great 👍 🚄 LGTM |
Thanks! |
fix 'consul reload' on custom rpc port
Similar to #173.