1 generated_templates = \
3 overcloud-with-block-storage-nfs.yaml \
6 undercloud-vm-ironic.yaml \
7 undercloud-vm-ironic-vlan.yaml
9 # Files included in overcloud-source.yaml via FileInclude
10 overcloud_source_deps = nova-compute-instance.yaml
12 all: $(generated_templates)
13 VALIDATE := $(patsubst %,validate-%,$(generated_templates))
14 validate-all: $(VALIDATE)
16 heat template-validate -f $(subst validate-,,$@)
18 # set CONTROLEXTRA to overcloud-vlan-port.yaml to activate the VLAN
19 # auto-assignment from Neutron.
20 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)
21 python ./tripleo_heat_merge/merge.py --hot --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 ${CONTROLEXTRA} > $@.tmp
24 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)
25 # $^ won't work here because we want to list nova-compute-instance.yaml as
26 # a prerequisite but don't want to pass it into merge.py
27 python ./tripleo_heat_merge/merge.py --hot --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
30 undercloud-vm.yaml: undercloud-source.yaml undercloud-vm-nova-config.yaml undercloud-vm-nova-deploy.yaml
31 python ./tripleo_heat_merge/merge.py --hot $^ > $@.tmp
34 undercloud-bm.yaml: undercloud-source.yaml undercloud-bm-nova-config.yaml undercloud-bm-nova-deploy.yaml
35 python ./tripleo_heat_merge/merge.py --hot $^ > $@.tmp
38 undercloud-vm-ironic.yaml: undercloud-source.yaml undercloud-vm-ironic-config.yaml undercloud-vm-ironic-deploy.yaml
39 python ./tripleo_heat_merge/merge.py --hot $^ > $@.tmp
42 undercloud-vm-ironic-vlan.yaml: undercloud-source.yaml undercloud-vm-ironic-config.yaml undercloud-vm-ironic-deploy.yaml undercloud-vlan-port.yaml
43 python ./tripleo_heat_merge/merge.py --hot $^ > $@.tmp
52 rm -f $(generated_templates)
54 .PHONY: clean overcloud.yaml check