summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Messner2018-02-19 11:40:22 +0100
committerManuel Messner2018-02-19 11:40:22 +0100
commit87de082ca3dbea586a1e6a69eb85930e7d4f7bbf (patch)
tree828e676d2231673e2228b21343da92b76c912b22
parentMakefile: extend help by the available options (diff)
downloadpacker-templates-87de082ca3dbea586a1e6a69eb85930e7d4f7bbf.tar.gz
packer-templates-87de082ca3dbea586a1e6a69eb85930e7d4f7bbf.tar.xz
packer-templates-87de082ca3dbea586a1e6a69eb85930e7d4f7bbf.zip
Makefile: make variables changeable from outside
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 63287ec..2267e09 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,10 @@
# TODO
# * support ssh as user instead of root
# * testing target
-PACKER ?= packer
-ANSIBLE_DIR = ansible-roles
+PACKER ?= packer
+ANSIBLE_DIR ?= ansible-roles
-HASHER ?= sha256sum
+HASHER ?= sha256sum
# check which hypervisors are available
@@ -39,7 +39,7 @@ BOOTTARGETS += $(foreach prov, $(PROVTARGETS), $(prov)/boot)
-PACKER_OPTS := -var-file=base.json
+PACKER_OPTS += -var-file=base.json
ifdef DEBUG
VERBOSE := 1
PACKER_OPTS += -debug