Skip to content

Commit

Permalink
wait for cloud-init before apt-get update
Browse files Browse the repository at this point in the history
cloud-init will set up the correct apt sources, so we can avoid broken packages.

Signed-off-by: James Thomson <jthomson@pivotal.io>
Co-authored-by: Jamie Klassen <cklassen@pivotal.io>
  • Loading branch information
James Thomson and Jamie Klassen committed Jul 31, 2019
1 parent d6a8101 commit 7d8e1e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deployments/smoke/smoke.tf
Expand Up @@ -75,6 +75,7 @@ resource "google_compute_instance" "smoke" {
provisioner "remote-exec" {
inline = [
"set -e -x",
"until [ -f /var/lib/cloud/instance/boot-finished ]; do sleep 1; done",
"apt-get update",
"apt-get -y install postgresql-10",
"sudo -i -u postgres createuser concourse",
Expand Down

0 comments on commit 7d8e1e0

Please sign in to comment.