variable "consul_address" {}provider "consul" {address = "${var.consul_address}"}resource "consul_key_prefix" "myapp_config" {...}
output "address" {value = ".....what?....."}
value = "localhost:8500"
value = "${format("localhost:8500", docker_container.consul.address)}"
provider "consul" {address = "${var.consul_address}"}
resource "template_file" "prefix" {template = "localhost:8500"vars { uuid = "${docker_container.consul.ip_address}" }}output "address" {value = "${template_file.prefix.rendered}"}
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/0267bb74-9963-42d1-859f-1a40245325cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm trying to do the following - which I'd assumed would be relatively easy, but is proving rather tricky.We use docker. I want to deploy a docker image for consul, then use that docker image in a consul provider in order to load some config into it.
That said, terraform apply works, but terraform destroy does not (as it tries to remove consul keys from the consul that has been destroyed). I can live with that, but I'm a touch confused as to whether providers can, or cannot rely on computed values (I.E: is my example above just going to work 'by chance'. They clearly appear in the dependency graph - but elsewhere I read that providers must always exist so that the 'plan' can decide in a 1-shot operation what activities must happen.
Aslo I was caught out by modules somewhat - I'd sort of expected that they were there to scope exactly this kind of layering, but it seems that they're only really a scoping feature. It'd be nice to be able to declare some sort of sealed/independent module as a "Provider Factory", so the plan could then know that the provider doesn't exist, therefore could be assumed to be in a reasonable 'default' state for the purposes of bootstrapping.Or maybe even a subtype-of the consul provider that hides the docker provisioning altogether.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/949376b8-b79e-4b28-8279-27e79724ab44%40googlegroups.com.
I was also disappointed. It seems too many things were started and not finished. The providers idea is a good one but only if at least many of them work. The lack of authentication to a repository for Docker is a pretty big missed requirement and I dug in a little and found that it was unlikely the PR was ever going to come back, at least not in a timeframe that would be needed to use it. I had to switch to another tool. I'll take a look in another year to see if some of the gaps are fixed. Some of the best ideas I've seen are in this tool and the implementation just needs to happen.
Mike
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/949376b8-b79e-4b28-8279-27e79724ab44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAPYP83QLOwu1%2BN-9%3D1wQBpAWAz9jdukkmUM_XjUUVjQS1NSLcQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAPYP83QLOwu1%2BN-9%3D1wQBpAWAz9jdukkmUM_XjUUVjQS1NSLcQ%40mail.gmail.com.
For what it's worth, Nigel, each module needs to define its provider(s) over again. The providers aren't shared between modules. That would probably explain the parameter prompts.