forked from openshift-metal3/dev-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
132 lines (91 loc) · 3.37 KB
/
Copy pathMakefile
File metadata and controls
132 lines (91 loc) · 3.37 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.PHONY: default all agent agent_cleanup agent_build_installer agent_configure agent_create_cluster infra_only sno_bip requirements configure ironic ocp_run install_config clean ocp_cleanup ironic_cleanup host_cleanup cache_cleanup registry_cleanup proxy_cleanup workingdir_cleanup podman_cleanup bell
default: requirements configure build_installer ironic install_config ocp_run bell
all: default
# Deploy cluster with assisted deployment flow
assisted: assisted_deployment bell
# Deploy cluster with agent installer flow
agent: agent_requirements requirements configure agent_build_installer agent_prepare_release agent_configure agent_create_cluster
# Deploy cluster with agent installer flow and adds nodes after initial install
# Requires at least 1 extra worker node to be configured with disk size at least 100Gß
agent_plus_add_node: agent agent_add_extraworker_nodes
# Deploy SNO cluster using Bootstrap-in-Place (no Ironic, no bootstrap VM)
sno_bip: requirements configure build_installer install_config ocp_run bell
# Setup infrastructure only (VMs, networks, BMC emulation) without cluster deployment
# Useful for testing external deployment tools
infra_only: requirements configure
@echo "Infrastructure setup complete!"
@echo " - VMs created and configured"
@echo " - Networks configured (provisioning + baremetal)"
@echo " - BMC emulation running (virtualbmc + sushy-tools)"
@echo ""
@echo "Skipping cluster installation. You can now:"
@echo " - Deploy OpenShift using your own tooling"
@echo " - Access BMC endpoints via Redfish/IPMI"
@echo " - Use 'make clean' to tear down infrastructure"
agent_requirements:
./agent/01_agent_requirements.sh
agent_build_installer:
./agent/03_agent_build_installer.sh
agent_prepare_release:
./agent/04_agent_prepare_release.sh
agent_configure:
./agent/05_agent_configure.sh
agent_create_cluster:
./agent/06_agent_create_cluster.sh
agent_cleanup:
./agent/cleanup.sh
agent_gather:
./agent/gather.sh
agent_tests:
./agent/agent_tests.sh
agent_add_extraworker_nodes:
./agent/07_agent_add_extraworker_nodes.sh
agent_remove_extraworker_nodes:
./agent/agent_remove_all_extraworker_nodes.sh
agent_post_install_validation:
./agent/08_agent_post_install_validation.sh
redeploy: ocp_cleanup ironic_cleanup build_installer ironic install_config ocp_run bell
requirements:
./01_install_requirements.sh
configure:
./02_configure_host.sh
build_installer:
./03_build_installer.sh
ironic:
./04_setup_ironic.sh
install_config:
./05_create_install_config.sh
ocp_run:
./06_create_cluster.sh
gather:
./must_gather.sh
clean: ocp_cleanup ironic_cleanup proxy_cleanup host_cleanup assisted_deployment_cleanup agent_cleanup oc_mirror_cleanup
assisted_deployment_cleanup:
./assisted_deployment.sh delete_all
ocp_cleanup:
./ocp_cleanup.sh
ironic_cleanup:
./ironic_cleanup.sh
host_cleanup:
./host_cleanup.sh
realclean: clean cache_cleanup workingdir_cleanup podman_cleanup registry_cleanup
cache_cleanup:
./cache_cleanup.sh
registry_cleanup:
./registry_cleanup.sh
workingdir_cleanup:
./workingdir_cleanup.sh
podman_cleanup:
./podman_cleanup.sh
proxy_cleanup:
./proxy_cleanup.sh
oc_mirror_cleanup:
./oc_mirror_cleanup.sh
bell:
@echo "Done!" $$'\a'
assisted_deployment:
./assisted_deployment.sh install_assisted_service
assisted_deployment_requirements:
./assisted_deployment.sh install_prerequisites_assisted_service
capi_e2e:
./run_capi_e2e.sh