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

Clarification required on consul_service, consul_agent_service, consul_catalog_entry resources #12163

Closed
blalor opened this issue Feb 22, 2017 · 2 comments

Comments

@blalor
Copy link
Contributor

blalor commented Feb 22, 2017

From looking at the documentation, it's unclear how a user should choose between the above three resources. Furthermore, both consul_service and consul_agent_service appear to do effectively the same thing, although the docs for consul_service indicate that registering a service with the catalog is something intended for the future. I believe the design of consul_service is confusing: if you configure the provider to use a non-local agent (such as consul.service.consul:8500 or some other mechanism that could non-deterministically choose a different agent on every Terraform plan or apply), subsequent Terraform invocations can fail if they're unable to find a service that was registered with a different agent previously.

@sean-
Copy link
Contributor

sean- commented Feb 22, 2017

@blalor Entirely valid points, and yeah, I agree. It's one of the reasons the "consul_nodes" doesn't exist and instead I named it consul_catalog_nodes (same with "consul_self" vs consul_agent_self). The lack of clarity between "catalog" vs "agent" is a common sticking point, but the implicit behavior with the missing implementation detail is problematic. I'll update the docs soon. Thank you for highlighting this.

@ghost
Copy link

ghost commented Apr 9, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants