summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Messner2018-02-22 15:58:23 +0100
committerManuel Messner2018-02-22 15:58:23 +0100
commit6a24ab8a00a2b0404dbba2e0752f9997d4134542 (patch)
treeefa4c28cd54c1aca459944b9d00f2047fef03c9d /Makefile
parentanaconda: centos: US keymap and layout (diff)
downloadpacker-templates-6a24ab8a00a2b0404dbba2e0752f9997d4134542.tar.gz
packer-templates-6a24ab8a00a2b0404dbba2e0752f9997d4134542.tar.xz
packer-templates-6a24ab8a00a2b0404dbba2e0752f9997d4134542.zip
Makefile: add on-error=ask option in debug mode
Diffstat (limited to 'Makefile')
-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"