1 generated_templates = \
3 overcloud-with-block-storage-nfs.yaml \
6 undercloud-vm-ironic.yaml
8 # Files included in overcloud-source.yaml via FileInclude
9 overcloud_source_deps = nova-compute-instance.yaml
11 all: $(generated_templates)
12 VALIDATE := $(patsubst %,validate-%,$(generated_templates))
13 validate-all: $(VALIDATE)
15 heat template-validate -f $(subst validate-,,$@)
17 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)
18 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
21 overcloud-with-block-storage-nfs.yaml: overcloud-source.yaml block-storage-nfs.yaml nfs-server-source.yaml swift-source.yaml swift-storage-source.yaml ssl-source.yaml $(overcloud_source_deps)
22 # $^ won't work here because we want to list nova-compute-instance.yaml as
23 # a prerequisite but don't want to pass it into merge.py
24 python ./tripleo_heat_merge/merge.py --scale NovaCompute=$${COMPUTESCALE:-'1'} --scale controller=$${CONTROLSCALE:-'1'} --scale SwiftStorage=$${SWIFTSTORAGESCALE='0'} --scale BlockStorage=$${BLOCKSTORAGESCALE:-'1'} overcloud-source.yaml block-storage-nfs.yaml nfs-server-source.yaml swift-source.yaml swift-storage-source.yaml ssl-source.yaml > $@.tmp
27 undercloud-vm.yaml: undercloud-source.yaml undercloud-vm-nova-config.yaml undercloud-vm-nova-deploy.yaml
28 python ./tripleo_heat_merge/merge.py $^ > $@.tmp
31 undercloud-bm.yaml: undercloud-source.yaml undercloud-bm-nova-config.yaml undercloud-bm-nova-deploy.yaml
32 python ./tripleo_heat_merge/merge.py $^ > $@.tmp
35 undercloud-vm-ironic.yaml: undercloud-source.yaml undercloud-vm-ironic-config.yaml undercloud-vm-ironic-deploy.yaml
36 python ./tripleo_heat_merge/merge.py $^ > $@.tmp
45 rm -f $(generated_templates)
47 .PHONY: clean overcloud.yaml check