-
Notifications
You must be signed in to change notification settings - Fork 3
/
custom-env.sh
33 lines (20 loc) · 1.06 KB
/
custom-env.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
#!/bin/bash
# Customised Environment
cd /root/openshift-origin-aws
# Domain Update - Please edt domain name XXXXXXX
sed -i 's/ose/ocp/g' cloud-cafe.in.db
mv cloudapps.cloud-cafe.in.db cloudapps.XXXXXXX.db
mv cloud-cafe.in.db XXXXXXX.db
sed -i 's/cloud-cafe.in/XXXXXXX/g' *
# Hostname Update
sed -i 's/ose/ocp/g' hostfile
sed -i 's/ose-master/ocp-master/g' *
sed -i 's/ose-hub/ocp-hub/g' *
sed -i 's/ose-node1/ocp-node1/g' *
sed -i 's/ose-node2/ocp-node2/g' *
# Adding more Hosts in for Loop (1-master,1-hub,3-nodes)
#sed -i 's/ocp-master,ocp-hub,ocp-node1,ocp-node2/ocp-master,ocp-hub,ocp-node1,ocp-node2,ocp-node3/g' *
# Adding more Hosts in for Loop (1-master,2-hub,3-etcd,3-nodes)
#sed -i 's/ocp-master,ocp-hub,ocp-node1,ocp-node2/ocp-master,ocp-hub1,ocp-hub2,ocp-etcd1,ocp-etcd2,ocp-etcd3,ocp-node1,ocp-node2,ocp-node3/g' *
# Adding more Hosts in for Loop Full HA (3-master,2-hub,3-etcd,3-nodes)
#sed -i 's/ocp-master,ocp-hub,ocp-node1,ocp-node2/ocp-master1,ocp-master2,ocp-master3,ocp-hub1,ocp-hub2,ocp-etcd1,ocp-etcd2,ocp-etcd3,ocp-node1,ocp-node2,ocp-node3/g' *