diff options
author | Steve Baker <sbaker@redhat.com> | 2014-07-08 13:27:07 +1200 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2014-07-08 13:48:16 +1200 |
commit | b127d38aa8ce7873b447bfa57f6a853b2441db5a (patch) | |
tree | f398f90a5a19fd1942c2829addaad300b988efc1 /Makefile | |
parent | 1c9c8249a2f245c053d6ee9ef088d49437a98fc1 (diff) |
Make target to validate a template
This adds make targets to run heat template-validate against the
generated templates.
These targets assume that credentials to a valid heat endpoint
have been sourced.
The target validate-all will validate every template in
generated_templates, but there is also a target created for each
template, for example:
make validate-overcloud.yaml
This is a useful aid for
Partial-Blueprint: tripleo-juno-remove-mergepy
Change-Id: Id101402b8b2fa0bc6058c5bc4b7474f0f6a158ad
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,10 @@ generated_templates = \ overcloud_source_deps = nova-compute-instance.yaml all: $(generated_templates) +VALIDATE := $(patsubst %,validate-%,$(generated_templates)) +validate-all: $(VALIDATE) +$(VALIDATE): + heat template-validate -f $(subst validate-,,$@) overcloud.yaml: overcloud-source.yaml block-storage.yaml swift-deploy.yaml swift-source.yaml swift-storage-source.yaml ssl-source.yaml nova-compute-config.yaml $(overcloud_source_deps) python ./tripleo_heat_merge/merge.py --scale NovaCompute=$${COMPUTESCALE:-'1'} --scale controller=$${CONTROLSCALE:-'1'} --scale SwiftStorage=$${SWIFTSTORAGESCALE='0'} --scale BlockStorage=$${BLOCKSTORAGESCALE='0'} overcloud-source.yaml block-storage.yaml swift-source.yaml swift-storage-source.yaml ssl-source.yaml swift-deploy.yaml nova-compute-config.yaml > $@.tmp |