You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to deploy the jobs while the Jenkins is not deployed yet, I get- Error: Get "http://jenkins.domainname.net:8080/api/json": dial tcp: lookup jenkins.domainname.net on 10.110.111.200:53: no such host
Only after I run terraform apply on the helm_release to deploy Jenkins and make sure external-dns already deployed so the Jenkins A record will get updated, then the error goes away and the resource gets applied (and jobs gets created).
Meaning - the depends_on doesn't work.
Is this a bug or a feature? :)
I assume it's related to the provider configuration - It needs to have the domain name available before trying to execute/evaluate anything under this provider, but there's no module output I can use for the server_url to make Terraform generate a "natural" dependency.
I got to have this dependency because I need to deploy the entire code in one run (vs. modular, as it currently works).
Please advise.
Thanks!
The text was updated successfully, but these errors were encountered:
This sounds like it may be related to hashicorp/terraform#2430, in which terraform itself must initiate the jenkins provider at Plan time to inspect your resources, but cannot due to the Jenkins instance not being online yet.
There are a few solutions proposed in there -- the most common suggestion is to separate the jenkins provider resources from the resources deploying Jenkins (Helm) in separate root modules. I hope this helps!
Hi,
I have a resource to create Jenkins jobs-
As you can see, I've set depends_on, on both the Jenkins helm chart and the externaldns resource that deploys the Jenkins A record to route53.
This is the provider config-
But when I try to deploy the jobs while the Jenkins is not deployed yet, I get-
Error: Get "http://jenkins.domainname.net:8080/api/json": dial tcp: lookup jenkins.domainname.net on 10.110.111.200:53: no such host
Only after I run
terraform apply
on the helm_release to deploy Jenkins and make sure external-dns already deployed so the Jenkins A record will get updated, then the error goes away and the resource gets applied (and jobs gets created).Meaning - the depends_on doesn't work.
Is this a bug or a feature? :)
I assume it's related to the provider configuration - It needs to have the domain name available before trying to execute/evaluate anything under this provider, but there's no module output I can use for the server_url to make Terraform generate a "natural" dependency.
I got to have this dependency because I need to deploy the entire code in one run (vs. modular, as it currently works).
Please advise.
Thanks!
The text was updated successfully, but these errors were encountered: