forked from kxr/ocp4_setup_upi_kvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.defaults.sh
104 lines (72 loc) · 2.31 KB
/
.defaults.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
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
#!/bin/bash
# These are the default values used by the script i.e,
# If an option/switch is not provided, these are the values that the script will use.
# These values can be overridden by providing corresponding switches/options.
# You can change these default values to the ones appropriate to your environment,
# to avoid passing them every time.
# -O, --ocp-version VERSION
export OCP_VERSION="stable"
# -R, --rhcos-version VERSION
export RHCOS_VERSION=""
# -m, --masters N
export N_MAST="3"
# -w, --workers N
export N_WORK="3"
# --master-cpu N(vCPU)
export MAS_CPU="4"
# --master-mem SIZE(MB)
export MAS_MEM="16000"
# --worker-cpu N(vCPU)
export WOR_CPU="8"
# --worker-mem SIZE(MB)
export WOR_MEM="16000"
# --bootstrap-cpu N(vCPU)
export BTS_CPU="4"
# --bootstrap-mem SIZE(MB)
export BTS_MEM="16000"
# --lb-cpu N(vCPU)
export LB_CPU="4"
# --lb-mem SIZE(MB)
export LB_MEM="16000"
# loadBalancer VM python WebServer port
export WS_PORT="1234"
# -n, --libvirt-network NETWORK
export DEF_LIBVIRT_NET="default"
# -N, --libvirt-oct OCTET
export VIR_NET_OCT=""
# -c, --cluster-name NAME
export CLUSTER_NAME="ocp-libvirt"
# -d, --cluster-domain DOMAIN
export BASE_DOM="local"
# -z, --dns-dir DIR
export DNS_DIR="/etc/NetworkManager/dnsmasq.d"
# -v, --vm-dir DIR
export VM_DIR="/var/lib/libvirt/images"
# -s, --setup-dir DIR
# By default set to /root/ocp4_cluster_$CLUSTER_NAME
export SETUP_DIR=""
# -x, --cache-dir DIR
export CACHE_DIR="/root/ocp/download-cache"
# -p, --pull-secret FILE
export PULL_SEC_F="${HOME}/pull-secret"
# --ssh-pub-key-file
# By default a new ssh key pair is generated in $SETUP_DIR
export SSH_PUB_KEY_FILE=""
# Below are some "flags" which by default are set to "no"
# and can be overridden by their respective switches.
# If you set them to "yes" here, you won't need pass those
# switches everytime you run the script.
# --autostart-vms
export AUTOSTART_VMS=no
# -k, --keep-bootstrap
export KEEP_BS=no
# -X, --fresh-download
export FRESH_DOWN=no
# --destroy
# Don't set this to yes
export DESTROY=no
# -y, --yes
export YES=no
export OCP_MIRROR=https://mirror.openshift.com/pub/openshift-v4/clients/ocp
export RHCOS_MIRROR=https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos
export LB_IMG_URL=https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-latest.x86_64.qcow2