You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/patterns/portworx-dr/getting-started.adoc
+68-42Lines changed: 68 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ It is desirable to have a cluster for deploying the GitOps management hub assets
27
27
== Preparing for deployment
28
28
.Procedure
29
29
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.
.. 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
-
125
91
.. Edit the `aws` section to refer to the file containing your AWS credentials:
126
92
+
127
93
[source,yaml]
@@ -144,14 +110,74 @@ Paste the path to your locally stored private and public keys. If you do not hav
144
110
path: ~/.ssh/publickey
145
111
----
146
112
147
-
.. Edit the `openshiftPullSecret` section to refer to the file containing your OpenShift pull secret:
113
+
.. Add a Portworx Enterprise DR license:
148
114
+
149
115
[source,yaml]
150
116
----
151
-
- name: openshiftPullSecret
117
+
- name: portworx
118
+
vaultPrefixes:
119
+
- global
152
120
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!"
155
181
----
156
182
157
183
. Create and switch to a new branch named `my-branch`, by running the following command:
0 commit comments