Skip to content

Instantly share code, notes, and snippets.

@phrawzty
Created June 18, 2015 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrawzty/0d93ff95c264e39234cc to your computer and use it in GitHub Desktop.
Save phrawzty/0d93ff95c264e39234cc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
TFORM_VERSION="0.5.3_linux_amd64"
gem install puppet puppet-lint
puppet-lint --with-filename --no-80chars-check --no-autoloader_layout-check --fail-on-warnings puppet/
puppet parser validate `find puppet/ -name '*.pp'`
pushd terraform
wget "https://dl.bintray.com/mitchellh/terraform/terraform_${TFORM_VERSION}.zip"
unzip -u terraform_${TFORM_VERSION}.zip
./wrapper.sh symlinks
popd
for environment in stage prod; do
for role in $(find ./terraform/* -maxdepth 1 -type d); do
pushd "$role"
../terraform plan -var="environment=$environment" \
-var="secret_key=FAKE" \
-var="access_key=FAKE" \
-var="subnets=FAKE" \
-var="secret_bucket=FAKE" \
-var="buildbox_cert=FAKE" \
-var="rds_root_password=FAKE"
popd
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment