This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.devel
64 lines (52 loc) · 1.78 KB
/
Makefile.devel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
PANDOC = pandoc
MDDOCS = README.md
HTMLDOCS = $(MDDOCS:.md=.html)
CUSTOM_ROLES = \
roles/ControllerDeployedServer.yaml \
roles/ComputeDeployedServer.yaml \
roles/NetworkerDeployedServer.yaml
CONTROLLER_SRC_ROLES = \
roles/ControllerOpenstack.yaml \
roles/Database.yaml \
roles/Messaging.yaml
COMPUTE_SRC_ROLES = \
roles/Compute.yaml
NETWORKER_SRC_ROLES = \
roles/Networker.yaml
%.html: %.md
$(PANDOC) -s $< -o $@ --toc --css docs/github-pandoc.css
all: roles_data.yaml
doc: $(HTMLDOCS)
roles_data.yaml: $(CUSTOM_ROLES)
openstack overcloud roles generate --roles-path roles -o $@ \
ControllerDeployedServer \
ComputeDeployedServer \
NetworkerDeployedServer
roles/ControllerDeployedServer.yaml: $(CONTROLLER_SRC_ROLES)
./scripts/merge-roles.py -o $@ \
-s OS::TripleO::Services::Securetty \
-s OS::TripleO::Services::ExternalSwiftProxy \
-s OS::TripleO::Services::NeutronOvsAgent \
-x disable_constraints=true \
-x HostnameFormatDefault='%stackname%-controller-%index%' \
ControllerDeployedServer \
$(CONTROLLER_SRC_ROLES)
roles/ComputeDeployedServer.yaml: $(COMPUTE_SRC_ROLES)
./scripts/merge-roles.py -o $@ \
-s OS::TripleO::Services::Securetty \
-x disable_constraints=true \
-x disable_upgrade_deployment=true \
-x HostnameFormatDefault='%stackname%-compute-%index%' \
ComputeDeployedServer \
$(COMPUTE_SRC_ROLES)
roles/NetworkerDeployedServer.yaml: $(NETWORKER_SRC_ROLES)
./scripts/merge-roles.py -o $@ \
-s OS::TripleO::Services::Securetty \
-s OS::TripleO::Services::Sshd \
-s OS::TripleO::Services::NeutronCorePlugin \
-x disable_constraints=true \
-x HostnameFormatDefault='%stackname%-networker-%index%' \
NetworkerDeployedServer \
$(NETWORKER_SRC_ROLES)
clean:
rm -f $(HTMLDOCS) $(CUSTOM_ROLES)