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

Consul reload fails when rpc_addr is 0.0.0.0 #220

Closed
danielbenzvi opened this issue Jan 25, 2016 · 1 comment
Closed

Consul reload fails when rpc_addr is 0.0.0.0 #220

danielbenzvi opened this issue Jan 25, 2016 · 1 comment

Comments

@danielbenzvi
Copy link
Contributor

Hey
The reload_service class is trying to reload the consul service by explicitly specifying the rpc addr and port.
While this makes perfect sense in case non default ports are used, it fails when the rpc_addr was set to listen to 0.0.0.0.

  if $consul::manage_service == true and $consul::service_ensure == 'running' {
    exec { 'reload consul service':
      path        => [$consul::bin_dir,'/bin','/usr/bin'],
      command     => "consul reload -rpc-addr=${consul::rpc_addr}:${consul::rpc_port}",
      refreshonly => true,
    }
  }
@solarkennedy
Copy link
Contributor

Ah gotcha. @danielbenzvi can you make a PR to just connect to localhost instead if the rpc addr is 0.0.0.0?

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