summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bauer2018-02-13 14:47:28 +0100
committerJonathan Bauer2018-02-13 14:47:28 +0100
commit96717946e1400e4bd633edb3ee44e3a098367460 (patch)
treed4169d5099b1902a57bb339dbbf2c13a9141ff14 /Makefile
parentMakefile: quote ROOTPW variable when generating/validating its hash (diff)
downloadpacker-templates-96717946e1400e4bd633edb3ee44e3a098367460.tar.gz
packer-templates-96717946e1400e4bd633edb3ee44e3a098367460.tar.xz
packer-templates-96717946e1400e4bd633edb3ee44e3a098367460.zip
Makefile: create the symlink to <flavor>.latest before provisioning
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9a10a18..7f5ccc6 100644
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,7 @@ $(foreach flav, $(FLAVORS), %/$(flav)): %/base
$(info ** Provisioning '$(@D)' with '$(@F)' **)
@mkdir -p $(BUILD_DIR)
@cp -r $(ANSIBLE_DIR) $(BUILD_DIR)/$(ANSIBLE_DIR)
+ @ln -sfn $(@F).$(TIMESTAMP) $(@D)/$(@F).latest
$(PACKER) build -only=$(BUILDER) \
$(PACKER_OPTS) \
-var='vm_name=rootfs-image' \
@@ -112,7 +113,6 @@ $(foreach flav, $(FLAVORS), %/$(flav)): %/base
-var='base_image=$(@D)/base/rootfs-image' \
-var='playbook=setup-$(@F).yml' \
$(BUILD_DIR)/$(ANSIBLE_DIR)/run-playbook-only.json
- @ln -sfn $(@F).$(TIMESTAMP) $(@D)/$(@F).latest
# Generating boot files