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

remove redundant consule CLI flags at consul init script #136

Open
rolandjohann opened this issue May 9, 2016 · 2 comments · May be fixed by #205
Open

remove redundant consule CLI flags at consul init script #136

rolandjohann opened this issue May 9, 2016 · 2 comments · May be fixed by #205

Comments

@rolandjohann
Copy link

The flags -bind and -client will be overridden with auto generated content from the init script (consul.conf.j2). So you are not able to provide them via configuration.

@nickvanw
Copy link

I think I'm running into the same issue, but I want to confirm.

In the upstart config here, if consul_client_address_bind is set, the config will automatically use the address of eth0 for the -client flag.

But if the user sets consul_client_address_bind AND consul_client_address here, then the configuration option equivalent of -client will be set.

Functionally, this means the user cannot set client_addr, as the flag overrides the config option.

I assume the same is true for the bind option?

If so, I would propose that when both address and address_bind are set, the upstart config do nothing, and let the consul.json file configure the address. I can/will put this up to a PR, if it sounds good @savagegus

@lhoss
Copy link
Collaborator

lhoss commented Aug 29, 2017

If so, I would propose that when both address and address_bind are set, the upstart config do nothing, and let the consul.json file configure the address. I can/will put this up to a PR, if it sounds good @savagegus

+1 👍

Current config is quite buggy, also due to the hardcoded eth0 iface, see: #103 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants