forked from karmab/kcli-ztp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·49 lines (42 loc) · 1.16 KB
/
deploy.sh
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
{% if http_proxy != None %}
bash /root/.proxy.sh
source /etc/profile.d/proxy.sh
{% endif %}
{% if virtual_masters %}
bash /root/00_virtual.sh
{% endif %}
/root/01_patch_installconfig.sh
bash /root/02_packages.sh
bash /root/03_network.sh
/root/04_get_clients.sh || exit 1
{% if cache %}
/root/05_cache.sh
{% endif %}
{% if disconnected %}
/root/06_disconnected.sh || exit 1
{% if disconnected_operators and not disconnected_operators_deploy_after_openshift %}
/root/065_olm.sh
{% endif %}
{% endif %}
{% if nbde %}
/root/07_nbde.sh
{% endif %}
{% if ntp %}
/root/08_ntp.sh
{% endif %}
{% if deploy_openshift %}
export KUBECONFIG=/root/ocp/auth/kubeconfig
bash /root/09_deploy_openshift.sh
sed -i "s/metal3-bootstrap/metal3/" /root/.bashrc
sed -i "s/172.22.0.2/172.22.0.3/" /root/.bashrc
{% if nfs %}
bash /root/10_nfs.sh
{% endif %}
{% if imageregistry %}
oc patch configs.imageregistry.operator.openshift.io cluster --type merge -p '{"spec":{"managementState":"Managed","storage":{"pvc":{}}}}'
{% endif %}
{% if disconnected and disconnected_operators and disconnected_operators_deploy_after_openshift %}
/root/065_olm.sh
{% endif %}
touch /root/cluster_ready.txt
{% endif %}