github.com/emc-cmd/terraform@v0.7.8-0.20161101145618-f16309630e7c/examples/google-two-tier/scripts/install.sh (about) 1 #!/bin/bash -xe 2 3 RESOURCE_INDEX=$1 4 apt-get -y update 5 apt-get -y install nginx 6 IP=$(curl -s -H "Metadata-Flavor:Google" http://metadata/computeMetadata/v1/instance/network-interfaces/0/ip) 7 echo "Welcome to Resource ${RESOURCE_INDEX} - ${HOSTNAME} (${IP})" > /usr/share/nginx/html/index.html 8 service nginx start