diff options
author | Manuel Messner | 2018-02-07 15:21:18 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-07 15:21:18 +0100 |
commit | 5a48fa04a8d9eb7dd60acd7dd183a1e7950644ab (patch) | |
tree | 885a451da5b8541fcc13331dcee1bb86f18bbb27 /Makefile | |
parent | Makefile: fix indention (diff) | |
download | packer-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |