summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Messner2018-02-07 15:21:18 +0100
committerManuel Messner2018-02-07 15:21:18 +0100
commit5a48fa04a8d9eb7dd60acd7dd183a1e7950644ab (patch)
tree885a451da5b8541fcc13331dcee1bb86f18bbb27 /Makefile
parentMakefile: fix indention (diff)
downloadpacker-templates-5a48fa04a8d9eb7dd60acd7dd183a1e7950644ab.tar.gz
packer-templates-5a48fa04a8d9eb7dd60acd7dd183a1e7950644ab.tar.xz
packer-templates-5a48fa04a8d9eb7dd60acd7dd183a1e7950644ab.zip
Makefile: find provisioning flavors dynamically.
This patch changes the way provisioning flavors are defined. In the past they were defined statically. Now there's a glob over all yaml files in $ANSIBLE_DIR which match a certain pattern.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5cdc861..789dcbf 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ PACKER=packer
ANSIBLE_DIR=ansible-roles
# the "provisioning" flavor, expects a 'setup-<flavor>.yml' playbook
# in the 'ansible-roles' submodule! This will likely change...
-FLAVORS = bwlp
+FLAVORS := $(patsubst $(ANSIBLE_DIR)/setup-%.yml,%, $(wildcard $(ANSIBLE_DIR)/setup-*.yml))
SUPPORTED_BUILDERS = qemu virtualbox-iso vmware-iso
# check which hypervisors are available
ifeq ($(shell which qemu-system-$(shell uname -m | sed 's/i686/i386/') 2>&1 > /dev/null && echo $$?), 0)