Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Commit

Permalink
Update datasources.tf
Browse files Browse the repository at this point in the history
add --retry 3 to curl command when trying to GET https://discovery.etcd.io/new?...
this change will help mitigate a rare issue that the pulled url sometimes returns "not ready ..."
  • Loading branch information
duhang authored Jan 9, 2018
1 parent 2f11430 commit 613524f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ data "oci_identity_availability_domains" "ADs" {

resource "template_file" "etcd_discovery_url" {
provisioner "local-exec" {
command = "[ -d ${path.root}/generated ] || mkdir -p ${path.root}/generated && curl https://discovery.etcd.io/new?size=${var.etcdAd1Count + var.etcdAd2Count + var.etcdAd3Count} > ${path.root}/generated/discovery${self.id}"
command = "[ -d ${path.root}/generated ] || mkdir -p ${path.root}/generated && curl --retry 3 https://discovery.etcd.io/new?size=${var.etcdAd1Count + var.etcdAd2Count + var.etcdAd3Count} > ${path.root}/generated/discovery${self.id}"
}
}

0 comments on commit 613524f

Please sign in to comment.