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

extra_params doesn't merge #111

Closed
mcoms opened this issue Jan 29, 2015 · 2 comments
Closed

extra_params doesn't merge #111

mcoms opened this issue Jan 29, 2015 · 2 comments

Comments

@mcoms
Copy link

mcoms commented Jan 29, 2015

I'd like to change the DNS port Consul listens on. If I include the following for extra_params:

default['consul']['extra_params'] = { 'ports' => { 'dns' => 53 }, 'recursor' => '8.8.8.8' }

The resulting default.json is:

{
  "ports": {
    "dns": 53
  },
  "recursor": "8.8.8.8",
  "data_dir": "/var/lib/consul",
  "server": true,
  "ports": {
    "dns": 8600,
    "http": 8500,
    "rpc": 8400,
    "serf_lan": 8301,
    "serf_wan": 8302,
    "server": 8300
  }
}

And the consul service fails to start.

@mcoms
Copy link
Author

mcoms commented Jan 29, 2015

Ah, scratch that... I discovered:

default['consul']['ports'] = {
  'dns'      => 8600,
  'http'     => 8500,
  'rpc'      => 8400,
  'serf_lan' => 8301,
  'serf_wan' => 8302,
  "server"   => 8300,
}

😊

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants