diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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" |