summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3db9c23..58d903f 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,11 @@ BOOTTARGETS += $(foreach prov, $(PROVTARGETS), $(prov)/boot)
override PACKER_OPTS += -var-file=base.json
ifdef DEBUG
VERBOSE := 1
- override PACKER_OPTS += -debug
+ ifeq ($(DEBUG),STEP)
+ override PACKER_OPTS += -debug
+ else
+ override PACKER_OPTS += -on-error=ask
+ endif
endif
@@ -208,6 +212,8 @@ help:
@printf "\tANSIBLE_DIR: Set directory with ansible roles (def: ansible-roles)\n"
@printf "\tBUILDER: Set a builder, do not autodetect\n"
@printf "\tDEBUG: Enable debug mode in packer (includes VERBOSE)\n"
+ @printf "\t DEBUG= Enable enhanced on-error handling\n"
+ @printf "\t DEBUG=STEP Enable step by step debugging in packer\n"
@printf "\tHASHER: Set wanted hasher (def: sha256sum)\n"
@printf "\tPACKER: Set packer executable (def: packer)\n"
@printf "\tPACKER_OPTS: Set packer options\n"