diff options
author | Manuel Messner | 2018-02-22 15:58:23 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-22 15:58:23 +0100 |
commit | 6a24ab8a00a2b0404dbba2e0752f9997d4134542 (patch) | |
tree | efa4c28cd54c1aca459944b9d00f2047fef03c9d /Makefile | |
parent | anaconda: centos: US keymap and layout (diff) | |
download | packer-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-- | 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" |