Pass Horizon port through to controller nodes
[apex-tripleo-heat-templates.git] / Makefile
1 generated_templates =                         \
2         overcloud.yaml                        \
3         overcloud-with-block-storage-nfs.yaml \
4         undercloud-vm.yaml                    \
5         undercloud-bm.yaml                    \
6         undercloud-vm-ironic.yaml             \
7         undercloud-vm-ironic-vlan.yaml
8
9 # Files included in overcloud-source.yaml via FileInclude
10 overcloud_source_deps = nova-compute-instance.yaml
11
12 all: $(generated_templates)
13 VALIDATE := $(patsubst %,validate-%,$(generated_templates))
14 validate-all: $(VALIDATE)
15 $(VALIDATE):
16         heat template-validate -f $(subst validate-,,$@)
17
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
22         mv $@.tmp $@
23
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
28         mv $@.tmp $@
29
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
32         mv $@.tmp $@
33
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
36         mv $@.tmp $@
37
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
40         mv $@.tmp $@
41
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
44         mv $@.tmp $@
45
46 check: test
47
48 test:
49         @bash test_merge.bash
50
51 clean:
52         rm -f $(generated_templates)
53
54 .PHONY: clean overcloud.yaml check