Skip to content

Commit

Permalink
Merge pull request #160 from Sitecore/feature/scch5.2-ltsc2019
Browse files Browse the repository at this point in the history
Add scch 5.2 ltsc2019
  • Loading branch information
sc-jennengng authored Jul 26, 2024
2 parents 9ba8f9d + 75740b2 commit ac0baca
Show file tree
Hide file tree
Showing 28 changed files with 382 additions and 0 deletions.
25 changes: 25 additions & 0 deletions compose/chub/5.2/ltsc2019/xm1/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Add the following environment variables to the Sitecore Platform .env file

#The Azure service bus entity path in
CMP_ServiceBusEntityPathIn=

#The Azure service bus subscription
CMP_ServiceBusSubscription=

#The Azure service bus entity path out
CMP_ServiceBusEntityPathOut=

#The Content Hub connection string, for example, ClientId=<Cliend-Id>;ClientSecret=<Client-Secret>;UserName=<User-Name>;Password=<Password>;URI=<Content-Hub-Instance-Url>
DAM_ContentHub=

#The Content Hub searh page URL
DAM_SearchPage=

#The Content Hub external redirect key
DAM_ExternalRedirectKey=

#The Content Hub connection string, for example, ClientId=<Cliend-Id>;ClientSecret=<Client-Secret>;UserName=<User-Name>;Password=<Password>;URI=<Content-Hub-Instance-Url>
CMP_ContentHub=

#Sitecore Platform topology to deploy
TOPOLOGY=
17 changes: 17 additions & 0 deletions compose/chub/5.2/ltsc2019/xm1/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
cd:
image: sitecore-chub-${TOPOLOGY}-cd:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_DAM.ContentHub: ${DAM_ContentHub}
Sitecore_ConnectionStrings_DAM.SearchPage: ${DAM_SearchPage}
Sitecore_ConnectionStrings_DAM.ExternalRedirectKey: ${DAM_ExternalRedirectKey}
cm:
image: sitecore-chub-${TOPOLOGY}-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_CMP.ContentHub: ${CMP_ContentHub}
Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathIn: ${CMP_ServiceBusEntityPathIn}
Sitecore_ConnectionStrings_CMP.ServiceBusSubscription: ${CMP_ServiceBusSubscription}
Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathOut: ${CMP_ServiceBusEntityPathOut}
Sitecore_ConnectionStrings_DAM.ContentHub: ${DAM_ContentHub}
Sitecore_ConnectionStrings_DAM.SearchPage: ${DAM_SearchPage}
Sitecore_ConnectionStrings_DAM.ExternalRedirectKey: ${DAM_ExternalRedirectKey}
25 changes: 25 additions & 0 deletions compose/chub/5.2/ltsc2019/xp0/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Add the following environment variables to the Sitecore Platform .env file

#The Azure service bus entity path in
CMP_ServiceBusEntityPathIn=

#The Azure service bus subscription
CMP_ServiceBusSubscription=

#The Azure service bus entity path out
CMP_ServiceBusEntityPathOut=

#The Content Hub connection string, for example, ClientId=<Cliend-Id>;ClientSecret=<Client-Secret>;UserName=<User-Name>;Password=<Password>;URI=<Content-Hub-Instance-Url>
DAM_ContentHub=

#The Content Hub searh page URL
DAM_SearchPage=

#The Content Hub external redirect key
DAM_ExternalRedirectKey=

#The Content Hub connection string, for example, ClientId=<Cliend-Id>;ClientSecret=<Client-Secret>;UserName=<User-Name>;Password=<Password>;URI=<Content-Hub-Instance-Url>
CMP_ContentHub=

#Sitecore Platform topology to deploy
TOPOLOGY=
11 changes: 11 additions & 0 deletions compose/chub/5.2/ltsc2019/xp0/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
cm:
image: sitecore-chub-${TOPOLOGY}-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_CMP.ContentHub: ${CMP_ContentHub}
Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathIn: ${CMP_ServiceBusEntityPathIn}
Sitecore_ConnectionStrings_CMP.ServiceBusSubscription: ${CMP_ServiceBusSubscription}
Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathOut: ${CMP_ServiceBusEntityPathOut}
Sitecore_ConnectionStrings_DAM.ContentHub: ${DAM_ContentHub}
Sitecore_ConnectionStrings_DAM.SearchPage: ${DAM_SearchPage}
Sitecore_ConnectionStrings_DAM.ExternalRedirectKey: ${DAM_ExternalRedirectKey}
25 changes: 25 additions & 0 deletions compose/chub/5.2/ltsc2019/xp1/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Add the following environment variables to the Sitecore Platform .env file

#The Azure service bus entity path in
CMP_ServiceBusEntityPathIn=

#The Azure service bus subscription
CMP_ServiceBusSubscription=

#The Azure service bus entity path out
CMP_ServiceBusEntityPathOut=

#The Content Hub connection string, for example, ClientId=<Cliend-Id>;ClientSecret=<Client-Secret>;UserName=<User-Name>;Password=<Password>;URI=<Content-Hub-Instance-Url>
DAM_ContentHub=

#The Content Hub searh page URL
DAM_SearchPage=

#The Content Hub external redirect key
DAM_ExternalRedirectKey=

#The Content Hub connection string, for example, ClientId=<Cliend-Id>;ClientSecret=<Client-Secret>;UserName=<User-Name>;Password=<Password>;URI=<Content-Hub-Instance-Url>
CMP_ContentHub=

#Sitecore Platform topology to deploy
TOPOLOGY=
17 changes: 17 additions & 0 deletions compose/chub/5.2/ltsc2019/xp1/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
cd:
image: sitecore-chub-${TOPOLOGY}-cd:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_DAM.ContentHub: ${DAM_ContentHub}
Sitecore_ConnectionStrings_DAM.SearchPage: ${DAM_SearchPage}
Sitecore_ConnectionStrings_DAM.ExternalRedirectKey: ${DAM_ExternalRedirectKey}
cm:
image: sitecore-chub-${TOPOLOGY}-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_CMP.ContentHub: ${CMP_ContentHub}
Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathIn: ${CMP_ServiceBusEntityPathIn}
Sitecore_ConnectionStrings_CMP.ServiceBusSubscription: ${CMP_ServiceBusSubscription}
Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathOut: ${CMP_ServiceBusEntityPathOut}
Sitecore_ConnectionStrings_DAM.ContentHub: ${DAM_ContentHub}
Sitecore_ConnectionStrings_DAM.SearchPage: ${DAM_SearchPage}
Sitecore_ConnectionStrings_DAM.ExternalRedirectKey: ${DAM_ExternalRedirectKey}
17 changes: 17 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xm1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../xm1

images:
- name: scr.sitecore.com/sxp/sitecore-xm1-cd
newName: "{registry}/sitecore-chub-xm1-cd"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xm1-cm
newName: "{registry}/sitecore-chub-xm1-cm"
newTag: tag

patchesStrategicMerge:
- patch-cd.scch.yaml
- patch-cm.scch.yaml
33 changes: 33 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xm1/patch-cd.scch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cd
spec:
selector:
matchLabels:
app: cd
template:
metadata:
labels:
app: cd
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: sitecore-xm1-cd
env:
- name: Sitecore_ConnectionStrings_DAM.ContentHub
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-content-hub.txt
- name: Sitecore_ConnectionStrings_DAM.SearchPage
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-search-page.txt
- name: Sitecore_ConnectionStrings_DAM.ExternalRedirectKey
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-external-redirect-key.txt
53 changes: 53 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xm1/patch-cm.scch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cm
spec:
selector:
matchLabels:
app: cm
template:
metadata:
labels:
app: cm
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: sitecore-xm1-cm
env:
- name: Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathIn
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-service-bus-entity-path-in.txt
- name: Sitecore_ConnectionStrings_CMP.ServiceBusSubscription
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-service-bus-subscription.txt
- name: Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathOut
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-service-bus-entity-path-out.txt
- name: Sitecore_ConnectionStrings_CMP.ContentHub
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-content-hub.txt
- name: Sitecore_ConnectionStrings_DAM.ContentHub
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-content-hub.txt
- name: Sitecore_ConnectionStrings_DAM.SearchPage
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-search-page.txt
- name: Sitecore_ConnectionStrings_DAM.ExternalRedirectKey
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-external-redirect-key.txt
21 changes: 21 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xm1/secrets/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../../xm1/secrets

generatorOptions:
disableNameSuffixHash: true

secretGenerator:
- name: scch-cmp-connection-strings
files:
- sitecore-cmp-service-bus-entity-path-in.txt
- sitecore-cmp-service-bus-subscription.txt
- sitecore-cmp-service-bus-entity-path-out.txt
- sitecore-cmp-content-hub.txt
- name: scch-dam-connection-strings
files:
- sitecore-dam-content-hub.txt
- sitecore-dam-search-page.txt
- sitecore-dam-external-redirect-key.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ClientId=[ClientId];ClientSecret=[ClientSecret];UserName=[UserName];Password=[Password];URI=[URI];
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Endpoint=[Endpoint];SharedAccessKeyName=[SharedAccessKeyName];SharedAccessKey=[SharedAccessKey];EntityPath=[EntityPath]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Endpoint=[Endpoint];SharedAccessKeyName=[SharedAccessKeyName];SharedAccessKey=[SharedAccessKey];EntityPath=[EntityPath]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[CMP_ServiceBusSubscription]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ClientId=[ClientId];ClientSecret=[ClientSecret];UserName=[UserName];Password=[Password];URI=[URI];
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[DAM_ExternalRedirectKey]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[DAM_SearchPage]
17 changes: 17 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xp1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../xp1

images:
- name: scr.sitecore.com/sxp/sitecore-xp1-cd
newName: "{registry}/sitecore-chub-xp1-cd"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-cm
newName: "{registry}/sitecore-chub-xp1-cm"
newTag: tag

patchesStrategicMerge:
- patch-cd.scch.yaml
- patch-cm.scch.yaml
33 changes: 33 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xp1/patch-cd.scch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cd
spec:
selector:
matchLabels:
app: cd
template:
metadata:
labels:
app: cd
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: sitecore-xp1-cd
env:
- name: Sitecore_ConnectionStrings_DAM.ContentHub
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-content-hub.txt
- name: Sitecore_ConnectionStrings_DAM.SearchPage
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-search-page.txt
- name: Sitecore_ConnectionStrings_DAM.ExternalRedirectKey
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-external-redirect-key.txt
53 changes: 53 additions & 0 deletions k8s/chub/5.2/ltsc2019/overrides/xp1/patch-cm.scch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cm
spec:
selector:
matchLabels:
app: cm
template:
metadata:
labels:
app: cm
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: sitecore-xp1-cm
env:
- name: Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathIn
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-service-bus-entity-path-in.txt
- name: Sitecore_ConnectionStrings_CMP.ServiceBusSubscription
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-service-bus-subscription.txt
- name: Sitecore_ConnectionStrings_CMP.ServiceBusEntityPathOut
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-service-bus-entity-path-out.txt
- name: Sitecore_ConnectionStrings_CMP.ContentHub
valueFrom:
secretKeyRef:
name: scch-cmp-connection-strings
key: sitecore-cmp-content-hub.txt
- name: Sitecore_ConnectionStrings_DAM.ContentHub
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-content-hub.txt
- name: Sitecore_ConnectionStrings_DAM.SearchPage
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-search-page.txt
- name: Sitecore_ConnectionStrings_DAM.ExternalRedirectKey
valueFrom:
secretKeyRef:
name: scch-dam-connection-strings
key: sitecore-dam-external-redirect-key.txt
Loading

0 comments on commit ac0baca

Please sign in to comment.