Update overcloud to support N compute hosts.
[apex-tripleo-heat-templates.git] / Makefile
1 generated_templates =                \
2         overcloud.yaml               \
3         undercloud-vm.yaml           \
4         undercloud-bm.yaml           \
5         undercloud-vm-tuskar.yaml    \
6         undercloud-vm-ironic.yaml
7
8 # Files included in overcloud-source.yaml via FileInclude
9 overcloud_source_deps = nova-compute-instance.yaml
10
11 all: $(generated_templates)
12
13 # Note that COMPUTESCALE is not a physical dep - 'make overcloud.yaml' won't do
14 # the right thing if you change COMPUTESCALE from one run to another.
15 overcloud.yaml: overcloud-source.yaml swift-source.yaml ssl-source.yaml $(overcloud_source_deps)
16         python ./tripleo_heat_merge/merge.py --scale NovaCompute=$${COMPUTESCALE:-'1'} overcloud-source.yaml swift-source.yaml ssl-source.yaml > $@.tmp
17         mv $@.tmp $@
18
19 overcloud-with-block-storage.yaml: overcloud-source.yaml nova-compute-instance.yaml swift-source.yaml block-storage.yaml
20         # $^ won't work here because we want to list nova-compute-instance.yaml as
21         # a prerequisite but don't want to pass it into merge.py
22         python ./tripleo_heat_merge/merge.py overcloud-source.yaml swift-source.yaml block-storage.yaml > $@.tmp
23         mv $@.tmp $@
24
25 undercloud-vm.yaml: undercloud-source.yaml undercloud-vm-source.yaml
26         python ./tripleo_heat_merge/merge.py $^ > $@.tmp
27         mv $@.tmp $@
28
29 undercloud-bm.yaml: undercloud-source.yaml undercloud-bm-source.yaml
30         python ./tripleo_heat_merge/merge.py $^ > $@.tmp
31         mv $@.tmp $@
32
33 undercloud-vm-tuskar.yaml: undercloud-source.yaml undercloud-vm-source.yaml tuskar-source.yaml
34         python ./tripleo_heat_merge/merge.py $^ > $@.tmp
35         mv $@.tmp $@
36
37 undercloud-vm-ironic.yaml: undercloud-source.yaml undercloud-vm-ironic-source.yaml ironic-source.yaml
38         python ./tripleo_heat_merge/merge.py $^ > $@.tmp
39         mv $@.tmp $@
40
41 test:
42         @bash test_merge.bash
43
44 clean:
45         rm -f $(generated_templates)