-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOPS-101 Share packer ami between dops prod and sandbox
- Loading branch information
Showing
3 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# Set bash unofficial strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/ | ||
set -euo pipefail | ||
|
||
# Set DEBUG to true for enhanced debugging: run prefixed with "DEBUG=true" | ||
${DEBUG:-false} && set -vx | ||
# Credit to https://stackoverflow.com/a/17805088 | ||
|
@@ -30,6 +30,7 @@ $DOCKER_PACKER validate app/packer/machines/web-server.json | |
if [[ "${SKIP_TERRAFORM:-false}" == "false" ]]; then | ||
DOCKER_TERRAFORM=$(get_docker_terraform) | ||
fmt=$($DOCKER_TERRAFORM fmt) | ||
echo "Linting terraform files for formatting" | ||
if [[ -n "$fmt" ]]; then | ||
echo 'ERROR: these files are not formatted correctly. Run "terraform fmt"' | ||
echo "$fmt" | ||
|
@@ -42,7 +43,6 @@ if [[ "${SKIP_TERRAFORM:-false}" == "false" ]]; then | |
-var 'newrelic_license_key=ZZZZ' \ | ||
-var 'newrelic_api_key=ZZZZ' \ | ||
-var '[email protected]' \ | ||
echo "Linting terraform files for formatting" | ||
fi | ||
|
||
echo "Linting shell scripts" | ||
|
This file contains 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
This file contains 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