Skip to content

Commit b044f26

Browse files
Merge pull request #23 from cloud-native-toolkit/dls-pipeline-v2
Dls pipeline v2
2 parents 2906e3f + fffac99 commit b044f26

5 files changed

Lines changed: 64 additions & 19 deletions

File tree

9.0.x/pipeline-run.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ spec:
1515
- name: uds-lastname
1616
value: "Developer"
1717
- name: use-letsencrypt-certs
18-
value: "false"
18+
value: "true"
19+
#lets encrypt secret location and namespace
20+
- name: tlscert-secret
21+
value: "user-serving-cert-000"
22+
- name: tlscert-namespace
23+
value: "openshift-kube-apiserver"
1924
- name: ibm-entitlement-key
2025
value: "false"
2126
#mas-license-secret
@@ -29,7 +34,7 @@ spec:
2934

3035
# install MAS Core. This task may be skipped once done successfully
3136
- name: mas-install-core
32-
value: "false"
37+
value: "true"
3338

3439
# install MAS Manage, depending on MAS Core, optionally CP4D/DB2
3540
- name: mas-install-manage
@@ -82,11 +87,6 @@ spec:
8287
value: "xxx"
8388
- name: mas_aibroker_channel
8489
value: "9.0.x"
85-
# cert location in ocpv
86-
#- name: tlscert-secret
87-
# value: ingress-certificate-tls
88-
#- name: tlscert-namespace
89-
# value: openshift-ingress
9090

9191
workspaces:
9292
- name: ws

9.0.x/pipeline.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,6 @@ spec:
306306
cp $(workspaces.ws.path)/masconfig/certs/core/* $(workspaces.ws.path)/masconfig/certs/predict/
307307
cp $(workspaces.ws.path)/masconfig/certs/core/* $(workspaces.ws.path)/masconfig/certs/aibroker/
308308
309-
# copy letsencrypt-certs secret to the name where maximo is expecting to find it.
310-
if oc get secret -n openshift-ingress router-certs-default; then
311-
echo "router-certs-default secret already exists"
312-
else
313-
oc get secret $(params.TLSCERT_SECRET_LOCATION) -n $(params.TLSCERT_SECRET_NAMESPACE) -o yaml | yq '.metadata["name"]="router-certs-default"' | oc apply -n openshift-ingress -f -
314-
fi
315309
exit
316310
- name: install-mas-core
317311
when:
@@ -482,6 +476,8 @@ spec:
482476
export CPD_SERVICE_STORAGE_CLASS=$(params.rwx-storageclass)
483477
export CPD_SERVICE_BLOCK_STORAGE_CLASS=$(params.rwo-storageclass)
484478
479+
mkdir -p $MAS_CONFIG_DIR
480+
485481
# Cloud Pak for Data Platform (~1 1/2 hours)
486482
ROLE_NAME=ibm_catalogs ansible-playbook ibm.mas_devops.run_role
487483
ROLE_NAME=cp4d ansible-playbook ibm.mas_devops.run_role

9.0.x/sample deployer params/mas-params-ocpv-core.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@
44
"params": {
55
"rwx-storageclass": "ocs-external-storagecluster-cephfs",
66
"rwo-storageclass": "ocs-external-storagecluster-cephfs",
7-
"tlscert-secret": "ingress-certificate-tls",
8-
"tlscert-namespace": "openshift-ingress",
7+
"use-letsencrypt-certs": "true",
8+
"tlscert-secret": "user-serving-cert-000",
9+
"tlscert-namespace": "openshift-kube-apiserver",
910
"mas-install-core": "true"
1011
}
12+
},
13+
"certs": {
14+
"SAN": [
15+
"admin.inst1.apps",
16+
"auth.inst1.apps",
17+
"api.inst1.apps",
18+
"home.inst1.apps",
19+
"masdev.home.inst1.apps",
20+
"masdev.manage.inst1.apps",
21+
"masdev-all.manage.inst1.apps",
22+
"masdev-cron.manage.inst1.apps",
23+
"masdev-mea.manage.inst1.apps",
24+
"masdev-rpt.manage.inst1.apps",
25+
"masdev-ui.manage.inst1.apps",
26+
"maxinst.manage.inst1.apps",
27+
"masdev.health.inst1.apps",
28+
"masdev-all.health.inst1.apps",
29+
"masdev-cron.health.inst1.apps",
30+
"masdev-mea.health.inst1.apps",
31+
"masdev-rpt.health.inst1.apps",
32+
"masdev-ui.health.inst1.apps",
33+
"maxinst.health.inst1.apps"
34+
]
1135
}
1236
}

9.0.x/sample deployer params/mas-params-ocpv-manage-iot-health.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,38 @@
44
"params": {
55
"rwx-storageclass": "ocs-external-storagecluster-cephfs",
66
"rwo-storageclass": "ocs-external-storagecluster-cephfs",
7-
"tlscert-secret": "ingress-certificate-tls",
8-
"tlscert-namespace": "openshift-ingress",
7+
"use-letsencrypt-certs": "true",
8+
"tlscert-secret": "user-serving-cert-000",
9+
"tlscert-namespace": "openshift-kube-apiserver",
910
"mas-install-core": "true",
1011
"mas-install-manage": "true",
1112
"mas-install-demo-data": "true",
1213
"mas-cp4d-install-cognos": "true",
1314
"mas-install-iot": "true",
1415
"mas-install-health": "true"
1516
}
17+
},
18+
"certs": {
19+
"SAN": [
20+
"admin.inst1.apps",
21+
"auth.inst1.apps",
22+
"api.inst1.apps",
23+
"home.inst1.apps",
24+
"masdev.home.inst1.apps",
25+
"masdev.manage.inst1.apps",
26+
"masdev-all.manage.inst1.apps",
27+
"masdev-cron.manage.inst1.apps",
28+
"masdev-mea.manage.inst1.apps",
29+
"masdev-rpt.manage.inst1.apps",
30+
"masdev-ui.manage.inst1.apps",
31+
"maxinst.manage.inst1.apps",
32+
"masdev.health.inst1.apps",
33+
"masdev-all.health.inst1.apps",
34+
"masdev-cron.health.inst1.apps",
35+
"masdev-mea.health.inst1.apps",
36+
"masdev-rpt.health.inst1.apps",
37+
"masdev-ui.health.inst1.apps",
38+
"maxinst.health.inst1.apps"
39+
]
1640
}
1741
}

9.0.x/sample deployer params/mas-params-ocpv-manage.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"params": {
55
"rwx-storageclass": "ocs-external-storagecluster-cephfs",
66
"rwo-storageclass": "ocs-external-storagecluster-cephfs",
7-
"tlscert-secret": "ingress-certificate-tls",
8-
"tlscert-namespace": "openshift-ingress",
7+
"use-letsencrypt-certs": "true",
8+
"tlscert-secret": "user-serving-cert-000",
9+
"tlscert-namespace": "openshift-kube-apiserver",
910
"mas-install-core": "true",
1011
"mas-install-manage": "true",
1112
"mas-install-demo-data": "true",

0 commit comments

Comments
 (0)