Created
June 18, 2015 15:39
-
-
Save phrawzty/0d93ff95c264e39234cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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