hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 488 forks source link

Install Git on Amazon Linux #61

Closed rszalski closed 6 years ago

rszalski commented 6 years ago

Amazon Linux does not have Git installed by default. The first provisioner step makes sure we install it. || true is used for compatibility with Ubuntu-based builder which does not have yum package manager.

Otherwise Amazon Linux will fail with:

==> amazon-linux-ami: Provisioning with shell script: /var/folders/zr/k8_fxx5d1xx56n1m758byg4r0000gn/T/packer-shell218591116
amazon-linux-ami: /tmp/script_3975.sh: line 2: git: command not found
==> amazon-linux-ami: Terminating the source AWS instance...