hashicorp / terraform-container-deploy-nomad

Example repository showing how to build and deploy a container using Terraform for Nomad, Kubenettes and Docker Swarm
GNU General Public License v3.0
24 stars 22 forks source link

get error when `terraform apply` #2

Open ozbillwang opened 7 years ago

ozbillwang commented 7 years ago

terraform plan is fine, but get error message when run terraform apply

Terraform version: 0.10.0 Nomad version: v0.6.0 Linux: Ubuntu 16.04

Error applying plan:

1 error(s) occurred:

* nomad_job.http-echo: 1 error(s) occurred:

* nomad_job.http-echo: error applying jobspec: Unexpected response code: 500 (1 error(s) occurred:

* Task group web validation failed: 1 error(s) occurred:

* 1 error(s) occurred:

* Stagger must be greater than zero: 0s)

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
ozbillwang commented 7 years ago

For servers, we still require the initial number of instances that is expected in the bootstrap process to ensure that we have a healthy cluster before we start to schedule work. The requirement for the initial cluster size is to ensure that the cluster can elect a leader and establish a quorum.

I installed nomad from this Vagrantfile Seems it isn't suitable with this demo directly.