Skip to content

Commit 6ccb2f3

Browse files
author
Martin Jackson
committed
Document secrets
1 parent 70df2c7 commit 6ccb2f3

2 files changed

Lines changed: 72 additions & 46 deletions

File tree

content/patterns/portworx-dr/_index.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: RamenDR Starter Kit
3-
date: 2025-11-13
2+
title: Portworx DR
3+
date: 2026-04-24
44
tier: sandbox
55
summary: This pattern demonstrates the use of Red Hat OpenShift Data Foundations for Virtualization Regional Disaster Recovery
66
rh_products:
@@ -15,9 +15,9 @@ industries: []
1515
aliases: /portworx-dr/
1616
pattern_logo: ansible-edge.png
1717
links:
18-
github: https://github.com/validatedpatterns/portworx-dr/
18+
github: https://github.com/validatedpatterns-sandbox/portworx-dr/
1919
install: getting-started
20-
bugs: https://github.com/validatedpatterns/portworx-dr/issues
20+
bugs: https://github.com/validatedpatterns-sandbox/portworx-dr/issues
2121
feedback: https://docs.google.com/forms/d/e/1FAIpQLScI76b6tD1WyPu2-d_9CCVDr3Fu5jYERthqLKJDUGwqBg7Vcg/viewform
2222
ci: portworx-dr
2323
---

content/patterns/portworx-dr/getting-started.adoc

Lines changed: 68 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ It is desirable to have a cluster for deploying the GitOps management hub assets
2727
== Preparing for deployment
2828
.Procedure
2929

30-
. Fork the link:https://github.com/validatedpatterns/portworx-dr[portworx-dr] repository on GitHub. You must fork the repository because your fork is updated as part of the GitOps and DevOps processes.
30+
. Fork the link:https://github.com/validatedpatterns-sandbox/portworx-dr[portworx-dr] repository on GitHub. You must fork the repository because your fork is updated as part of the GitOps and DevOps processes.
3131

3232
. Clone the forked copy of this repository.
3333
+
@@ -47,7 +47,7 @@ $ cd /path/to/your/repository
4747
+
4848
[source,terminal]
4949
----
50-
$ git remote add -f upstream git@github.com:validatedpatterns/portworx-dr.git
50+
$ git remote add -f upstream git@github.com:validatedpatterns-sandbox/portworx-dr.git
5151
----
5252

5353
. Verify the setup of your remote repositories by running the following command:
@@ -63,8 +63,8 @@ $ git remote -v
6363
----
6464
origin git@github.com:kquinn1204/portworx-dr.git (fetch)
6565
origin git@github.com:kquinn1204/portworx-dr.git (push)
66-
upstream git@github.com:validatedpatterns/portworx-dr.git (fetch)
67-
upstream git@github.com:validatedpatterns/portworx-dr.git (push)
66+
upstream git@github.com:validatedpatterns-sandbox/portworx-dr.git (fetch)
67+
upstream git@github.com:validatedpatterns-sandbox/portworx-dr.git (push)
6868
----
6969

7070
. Make a local copy of secrets template outside of your repository to hold credentials for the pattern.
@@ -88,40 +88,6 @@ $ cp values-secret.yaml.template ~/values-secret.yaml
8888
$ vi ~/values-secret.yaml
8989
----
9090

91-
.. Edit the `vm-ssh` section to include the username, private key, and public key. To ensure the seamless flow of the pattern, the value associated with the `privatekey` and `publickey` has been updated with `path`. For example:
92-
+
93-
[source,yaml]
94-
----
95-
- name: vm-ssh
96-
vaultPrefixes:
97-
- global
98-
fields:
99-
- name: username
100-
value: 'cloud-user'
101-
- name: privatekey
102-
path: '/path/to/private-ssh-key'
103-
- name: publickey
104-
path: '/path/to/public-ssh-key'
105-
----
106-
+
107-
Paste the path to your locally stored private and public keys. If you do not have a key pair, generate one using `ssh-keygen`.
108-
109-
.. Edit the `cloud-init` section to include the `userData` block to use with cloud-init. For example:
110-
+
111-
[source,yaml]
112-
----
113-
- name: cloud-init
114-
vaultPrefixes:
115-
- global
116-
fields:
117-
- name: userData
118-
value: |-
119-
#cloud-config
120-
user: 'cloud-user'
121-
password: 'cloud-user'
122-
chpasswd: { expire: False }
123-
----
124-
12591
.. Edit the `aws` section to refer to the file containing your AWS credentials:
12692
+
12793
[source,yaml]
@@ -144,14 +110,74 @@ Paste the path to your locally stored private and public keys. If you do not hav
144110
path: ~/.ssh/publickey
145111
----
146112

147-
.. Edit the `openshiftPullSecret` section to refer to the file containing your OpenShift pull secret:
113+
.. Add a Portworx Enterprise DR license:
148114
+
149115
[source,yaml]
150116
----
151-
- name: openshiftPullSecret
117+
- name: portworx
118+
vaultPrefixes:
119+
- global
152120
fields:
153-
- name: .dockerconfigjson
154-
path: ~/pull_secret.json
121+
- name: dr_license
122+
path: "/path/to/enterprise+dr/license"
123+
description: "The portworx dr license that can be activated with `pxctl license activate saas --key <license>`"
124+
----
125+
126+
.. Add the kubeconfigs for both clusters:
127+
+
128+
[source,yaml]
129+
----
130+
- name: kubeconfigs
131+
vaultPrefixes:
132+
- global
133+
fields:
134+
- name: primary_kubeconfig
135+
path: "/path/to/primary/cluster/kubeconfig"
136+
description: "path to the the kubeconfig for the primary cluster"
137+
- name: secondary_kubeconfig
138+
path: "/path/to/secondary/cluster/kubeconfig"
139+
description: "path to the the kubeconfig for the secondary (failover) cluster"
140+
----
141+
142+
.. Add an Ansible Automation Platform manifest:
143+
+
144+
[source,yaml]
145+
----
146+
- name: aap-manifest
147+
vaultPrefixes:
148+
- hub
149+
fields:
150+
- name: b64content
151+
path: '~/Downloads/<manifest_filename>.zip'
152+
base64: true
153+
description: "Manifest obtained from following https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/installing_on_openshift_container_platform/assembly-gateway-licensing-operator-copy#assembly-aap-obtain-manifest-files"
154+
----
155+
156+
.. Add an Ansible Automation Platform Automation Hub token:
157+
+
158+
[source,yaml]
159+
----
160+
- name: automation-hub-token
161+
vaultPrefixes:
162+
- hub
163+
fields:
164+
- name: token
165+
path: '/path/to/automation-hub-token'
166+
description: "Automation hub token obtained from https://console.redhat.com/ansible/automation-hub/token"
167+
----
168+
169+
.. Add an AGOF Vault File. Normally the content "---" is sufficient:
170+
+
171+
[source,yaml]
172+
----
173+
- name: agof-vault-file
174+
vaultPrefixes:
175+
- hub
176+
fields:
177+
- name: agof-vault-file
178+
value: '---'
179+
base64: true
180+
description: "Needed for AGOF, do not change!"
155181
----
156182

157183
. Create and switch to a new branch named `my-branch`, by running the following command:

0 commit comments

Comments
 (0)