-
Notifications
You must be signed in to change notification settings - Fork 0
/
cp4i.properties
281 lines (243 loc) · 10.7 KB
/
cp4i.properties
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# This file contains values to be provisioned by the user for a specific installation
# There is a comment Likely to change close to the values that you may want to change
# Switch to install operators on all namespaces (openshift-operators) or ${MY_OC_PROJECT}
# Warning use the last one if not on all namespaces
# SB]20231221 tentative pour mettre en place qqs regles de nommage des variables (https://bertvv.github.io/cheat-sheets/Bash.html)
#
# [Projects]
MY_COMMONSERVICES_NAMESPACE=ibm-common-services
MY_OPERATORS_NAMESPACE=openshift-operators
MY_LICENSE_SERVER_NAMESPACE=ibm-licensing
MY_CERTMANAGER_NAMESPACE=cert-manager-operator
MY_INSTANA_AGENT_NAMESPACE=instana-agent
MY_LDAP_NAMESPACE=ldap
MY_MAIL_SERVER_NAMESPACE=mail
MY_BACKEND_NAMESPACE=backend
MY_POSTGRESQL_NAMESPACE=postgresql
MY_GITOPS_NAMESPACE=openshift-gitops-operator
# https://docs.openshift.com/gitops/1.12/installing_gitops/installing-openshift-gitops.html voir Note : For the GitOps version 1.10 and later, the default namespace changed from openshift-operators to openshift-gitops operator.
# Mais dans la console Openshift de la TechZone on voit bien que le s est toujours openshift-operators
#MY_GITOPS_NAMESPACE=openshift-operators
#https://docs.openshift.com/container-platform/4.14/observability/logging/cluster-logging-deploying.html#logging-loki-cli-install_cluster-logging-deploying
MY_LOGGING_NAMESPACE="openshift-logging"
# CASE name
MY_ACE_CASE="ibm-appconnect"
MY_APIC_CASE="ibm-apiconnect"
MY_ASSETREPO_CASE="ibm-integration-asset-repository"
MY_DPGW_CASE="ibm-datapower-operator"
MY_COMMONSERVICES_CASE="ibm-cp-common-services"
MY_EEM_CASE="ibm-eventendpointmanagement"
MY_ES_CASE="ibm-eventstreams"
MY_EP_CASE="ibm-eventprocessing"
MY_FLINK_CASE="ibm-eventautomation-flink"
MY_HSTS_CASE="ibm-aspera-hsts-operator"
MY_LICENSE_SERVER_CASE="ibm-licensing-operator"
MY_LICENSE_SERVER_REPORTER_CASE="ibm-licensing-operator"
MY_MQ_CASE="ibm-mq"
MY_NAVIGATOR_CASE="ibm-integration-platform-navigator"
MY_WL_CASE="ibm-websphere-liberty"
MY_CLOUDNATIVE_PG_CASE="ibm-postgreservice"
MY_CERTMANAGER_CASE="cert-manager-operator"
MY_GITOPS_CASE="openshift-gitops-operator"
MY_PIPELINES_CASE="openshift-pipelines-operator"
MY_LOKI_OPERATOR="loki-operator"
MY_INSTANA_CSV_NAME="instana-agent-operator"
# Section platform script execution
# Container engine docker or podman
# [Platform]
MY_CONTAINER_ENGINE=docker
# MY_CONTAINER_ENGINE=podman
# ldapadd command
MY_LDAP_COMMAND=ldapadd
# SB]20240206 to download toolkit depending on the platform : Linux or Windows or Mac
#MY_PLATFORM=windows
MY_PLATFORM=linux
#MY_PLATFORM=mac
# OperatorGroup
MY_CERTMANAGER_OPERATORGROUP=cert-manager-operatorgroup
MY_LICENSE_SERVER_OPERATORGROUP=license-server-operatorgroup
MY_GITOPS_OPERATORGROUP=openshift-gitops-operator
MY_PIPELINES_OPERATORGROUP=openshift-pipelines-operator-rh
MY_WAS_LIBERTY_OPERATORGROUP=was-liberty-operatorgroup
MY_POSTGRESQL_OPERATORGROUP=postgresql-operatorgroup
MY_LOGGING_OPERATORGROUP=cluster-logging
# Name of the namespace of openshift market place used to define sourceNamespace
MY_CATALOGSOURCES_NAMESPACE=openshift-marketplace
# Important: this is where you define what you want to install
# Likely to change (till choice of install DataPower)
# [Boolean Triggers]
# This is used force the load of the CASE
# It takes a lot of time, so if you have already loaded the cases, then you can switch to false when re-running the script on the existing cluster from the same machine.
# Likely to change
MY_ACE=true
MY_APIC=true
MY_ASSETREPO=true
#MY_COMMONSERVICES=false
MY_DPGW=false
MY_EEM=true
MY_EGW=true
MY_EP=true
MY_ES=true
MY_FLINK=true
MY_HSTS=false
MY_LIC_SRV=true
MY_MQ=true
MY_MESSAGINGSERVER=false
MY_NAVIGATOR=true
MY_OPENLIBERTY=true
MY_WASLIBERTY=true
# Explain why this one
MY_NAVIGATOR_INSTANCE=true
#MY_LOGGING_ELK=false
MY_LOGGING_LOKI=true
# Switch to use or not the Integration Assembly (To deploy multiple instances of other IBM Cloud Pak® for Integration capabilities and components from the same YAML file)
MY_INTASSEMBLY=false
MY_INSTANA=true
MY_LDAP=true
MY_TEKTON=true
# Mail is a prerequisite for APIC
MY_MAILHOG=true
MY_POSTGRESQL=false
# Important: this is where you define if you want to customise each component
MY_ACE_CUSTOM=false
MY_OPENLIBERTY_CUSTOM=false
# It is likely that if you have the latest image, you do not need to build it over and over
MY_OPENLIBERTY_CUSTOM_BUILD=false
MY_WASLIBERTY_CUSTOM=true
# It is likely that if you have the latest image in your image registry, you do not need to build it over and over
MY_WASLIBERTY_CUSTOM_BUILD=true
MY_APIC_CUSTOM=true
MY_ASSETREPO_CUSTOM=false
MY_DPGW_CUSTOM=false
MY_EEM_CUSTOM=false
MY_EGW_CUSTOM=false
MY_FLINK_CUSTOM=false
MY_EP_CUSTOM=false
MY_ES_CUSTOM=false
MY_HSTS_CUSTOM=false
MY_LDAP_CUSTOM=false
MY_MQ_CUSTOM=false
MY_INSTANA_CUSTOM=false
MY_NAVIGATOR_CUSTOM=false
# Name of created objects for the installation
# [Instances]
MY_ACE_DASHBOARD_INSTANCE_NAME=${MY_OC_PROJECT}-ace-db
#MY_ACE_DESIGNER_INSTANCE_NAME=${MY_OC_PROJECT}-ace-dg
MY_ACE_DESIGNER_INSTANCE_NAME=${MY_OC_PROJECT}-ace-dg-ss
MY_ACE_SWITCHSERVER_INSTANCE_NAME=${MY_OC_PROJECT}-ace-ss
MY_APIC_INSTANCE_NAME=${MY_OC_PROJECT}-apic
MY_ASSETREPO_INSTANCE_NAME=${MY_OC_PROJECT}-ar
MY_COMMONSERVICES_INSTANCE_NAME=common-service
MY_FLINK_INSTANCE_NAME=${MY_OC_PROJECT}-flk
MY_EEM_INSTANCE_NAME=${MY_OC_PROJECT}-eem
MY_EP_INSTANCE_NAME=${MY_OC_PROJECT}-ep
MY_ES_INSTANCE_NAME=${MY_OC_PROJECT}-es
MY_EGW_INSTANCE_NAME=${MY_OC_PROJECT}-eg
MY_EGW_INSTANCE_GRP_NAME=${MY_OC_PROJECT}-egrp
MY_HSTS_INSTANCE_NAME=${MY_OC_PROJECT}-hsts
MY_INTASSEMBLY_INSTANCE_NAME=${MY_OC_PROJECT}-ia
MY_INSTANA_INSTANCE_NAME=instana-agent
MY_LICENSE_SERVER_REPORTER_INSTANCE_NAME=${MY_OC_PROJECT}-licsrv-reporter
MY_MQ_INSTANCE_NAME=${MY_OC_PROJECT}mq
MY_NAVIGATOR_INSTANCE_NAME=${MY_OC_PROJECT}-navigator
MY_LOKI_INSTANCE_NAME=${MY_OC_PROJECT}-loki
MY_LOKI_BUCKET_INSTANCE_NAME=${MY_OC_PROJECT}-loki-bucket
MY_LOKI_SECRET=${MY_OC_PROJECT}-loki-secret
MY_LOKI_BUCKETNAME=${MY_OC_PROJECT}-loki-bucket
# SB]20240729 https://docs.openshift.com/container-platform/4.14/observability/logging/cluster-logging-deploying.html
# Name must be instance.
MY_RHOL_INSTANCE_NAME=instance
#SB]20240628 MessagingServer resources
MY_MSGSRV_INSTANCE_NAME=${MY_OC_PROJECT}msgsrv
MY_MSGQ_INSTANCE_NAME=${MY_OC_PROJECT}q1
MY_MSGCHL_INSTANCE_NAME=${MY_OC_PROJECT}-msgsrv-chl
MY_MSGUSER_INSTANCE_NAME=${MY_OC_PROJECT}user1
#SB]20230201 instana
MY_UNIQUE_INSTANA_SUFFIX=`whoami`
MY_INSTANA_CM=instana-agent
MY_INSTANA_ZONE_NAME=${MY_OC_PROJECT}-instana-${MY_UNIQUE_INSTANA_SUFFIX}
MY_INSTANA_CLUSTER_NAME=${MY_OC_PROJECT}-instana-${MY_UNIQUE_INSTANA_SUFFIX}-cluster
# These two ConfigMaps are used to configure ES metrics
MY_ES_METRICS_CM=${MY_OC_PROJECT}-prod-3-brokers-metrics-config
# Program structure, you should not change this part
# [Directories]
# Attention le test avec le homedirectory ~ ne fonctionne pas !!!
#MY_IBMPAKDIR="~/.ibm-pak/data/cases/"
MY_IBMPAKDIR="${HOME}/.ibm-pak/data/cases/"
MY_LDAPDIR="${MAINSCRIPTDIR}ldap/"
MY_OPERATORSDIR="${MAINSCRIPTDIR}templates/operators/"
MY_OPERANDSDIR="${MAINSCRIPTDIR}templates/operands/"
MY_OPERANDS_GEN_CUSTOMDIR="${MAINSCRIPTDIR}customisation/"
MY_PRIVATEDIR="${MAINSCRIPTDIR}private/"
MY_RESOURCESDIR="${MAINSCRIPTDIR}templates/resources/"
MY_WORKINGDIR="${MAINSCRIPTDIR}working/"
MY_YAMLDIR="${MAINSCRIPTDIR}templates/"
MY_ACE_CONFIGDIR="${MAINSCRIPTDIR}templates/configuration/ACE/"
MY_ACE_BARDIR="${MY_RESOURCESDIR}ACE/Bar/"
# gen custom dirs for example customisation/working/ACE/
MY_ACE_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/ACE/"
MY_OPENLIBERTY_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/OPENLIBERTY/"
MY_WASLIBERTY_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/WASLIBERTY/"
MY_APIC_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/APIC/"
MY_ASSETREPO_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/AR/"
MY_HSTS_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/ASPERA/"
MY_ES_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/ES/"
MY_EEM_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/EEM/"
MY_EP_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/EP/"
MY_MQ_GEN_CUSTOMDIR="${MY_OPERANDS_GEN_CUSTOMDIR}working/MQ/"
# scripts dirs
MY_ACE_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}ACE/"
MY_OPENLIBERTY_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}OPENLIBERTY/"
MY_WASLIBERTY_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}WASLIBERTY/"
MY_APIC_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}APIC/"
MY_ASSETREPO_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}AR/"
MY_HSTS_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}ASPERA/"
MY_ES_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}ES/"
MY_EEM_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}EEM/"
MY_EP_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}EP/"
MY_MQ_SCRIPTDIR="${MY_OPERANDS_GEN_CUSTOMDIR}MQ/"
# cluster definition
# Likely to change (till number of clusters)
# use either classic or vpc
# [Cluster]
MY_CLUSTER_INFRA=classic
# To see the supported Kubernetes versions including OpenShift, run: ibmcloud ks versions -q --show-version OpenShift
# Tested with 4.10 need to update it to 4.12/4.14
MY_OC_VERSION=4.14
# To list available zones, run: ibmcloud ks zone ls --provider (classic|vpc-classic|vpc-gen2)
MY_CLUSTER_ZONE=par01 # classic
MY_CLUSTER_REGION=eu-de # vpc
# To list available flavors, run: ibmcloud ks flavors -q --zone $MY_CLUSTER_ZONE
#MY_CLUSTER_FLAVOR_CLASSIC=b3c.32x128 # sur classic
MY_CLUSTER_FLAVOR_CLASSIC=b3c.16x64.300gb # sur classic
MY_CLUSTER_FLAVOR_VPC=bx2.16x64 # sur vpc
# To indicate the number of workers
MY_CLUSTER_WORKERS=3
#SB]20231106 storage class
# For MOP cluster the storage class to use is : scale-techsales-fileset
#MY_BLOCK_STORAGE_CLASS=scale-techsales-fileset
#MY_FILE_STORAGE_CLASS=scale-techsales-fileset
#MY_BLOCK_STORAGE_CLASS=ibmc-block-gold
#MY_FILE_STORAGE_CLASS=ibmc-file-gold-gid
#MY_FILE_LDAP_STORAGE_CLASS=ibmc-file-bronze
# [Storage]
MY_BLOCK_STORAGE_CLASS=ocs-storagecluster-ceph-rbd
MY_FILE_STORAGE_CLASS=ocs-storagecluster-cephfs
MY_FILE_LDAP_STORAGE_CLASS=ocs-storagecluster-cephfs
# other information for optional components
## LDAP
# DN of the administrator for openldap driven by the image default values provided
MY_DN_OPENLDAP=cn=admin,dc=example,dc=com
# Name of the organisation to prefix entries in the DIT (Directory Informtion Tree) substituted during installation
MY_ORG_OPENLDAP=ibm
# uid of the user who ... substituted during installation
MY_DEVELOPER_UID=dev1
# save json in file apikey.json : ibm cloud api key created from IBM Cloud->Manage->IAM->API Keys
# https://cloud.ibm.com/iam/apikeys
MY_IC_APIKEY=$(jq -r .apikey < "${MY_PRIVATEDIR}apikey.json")
# save key in file from https://myibm.ibm.com/ -> container software library
# https://myibm.ibm.com/products-services/containerlibrary
MY_ENTITLEMENT_KEY=$(cat "${MY_PRIVATEDIR}ibm_container_entitlement_key.txt")
# Custom WAS Liberty properties
MY_WLA_APP_NAME="demo"
MY_WLA_APP_NAME_VERSION="demo:1.0"