chatted with alvin and dani about best practices. terraform destroy was added to the terraform apply job to ensure that the created resource is always destroyed at the end of a run (when: always)
job successfully runs but states Destroy complete! Resources: 0 destroyed. at the end? cannot see any evidence of a server being created by this job
removed the destroy task, can see the server in packet now. requires more tweaking. however, the server is running 18.04 so I've got that going for me
still don't know
alvin pointed me to go-discovery which has a similar set-up. working on adapting some principles there to get packer up
Issues/Questions:
I need to get my Packer code into Github to continue testing against it.
how do we get a server spun up in packet via CircleCI? outlined in #12
once a server is spun up, how do we tear it down after the run is finished?
terraform destroy
?how do we get the IP address out of the TFE artifacts?
how do we get packer spun up within the packet node?
Solutions:
added a new repo within my personal org, preparing to add packer docs
12 has been solved by adding the following (also includes the
terraform destroy
task mentioned below):chatted with alvin and dani about best practices.
terraform destroy
was added to theterraform apply
job to ensure that the created resource is always destroyed at the end of a run (when: always
)Destroy complete! Resources: 0 destroyed.
at the end? cannot see any evidence of a server being created by this jobdestroy
task, can see the server in packet now. requires more tweaking. however, the server is running 18.04 so I've got that going for mestill don't know
alvin pointed me to go-discovery which has a similar set-up. working on adapting some principles there to get packer up