@@ -78,13 +78,13 @@ Setup OpenBao on the seed node
78
78
79
79
1. Run secret-store-deploy-seed.yml custom playbook
80
80
81
- .. code-block::bash
81
+ .. code-block :: bash
82
82
83
83
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-deploy-seed.yml
84
84
85
85
2. Encrypt generated certs/keys with ansible-vault (use proper location of vault password file)
86
86
87
- .. code-block::bash
87
+ .. code-block :: bash
88
88
89
89
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /openbao/OS-TLS-INT.pem
90
90
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /openbao/seed-openbao-keys.json
@@ -97,7 +97,7 @@ Setup OpenBao on the seed node
97
97
98
98
Or if environments are being used
99
99
100
- .. code-block::bash
100
+ .. code-block :: bash
101
101
102
102
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /openbao/OS-TLS-INT.pem
103
103
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /openbao/seed-openbao-keys.json
@@ -113,28 +113,19 @@ Setup OpenBao HA on the overcloud hosts
113
113
114
114
1. Run secret-store-deploy-overcloud.yml custom playbook
115
115
116
- .. code-block::bash
116
+ .. code-block :: bash
117
117
118
118
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-deploy-overcloud.yml
119
119
120
120
2. Encrypt overcloud openbao keys (use proper location of vault password file)
121
121
122
- .. code-block::bash
122
+ .. code-block :: bash
123
123
124
124
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /openbao/overcloud-openbao-keys.json
125
125
126
126
# For Hashicorp Vault
127
127
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /vault/overcloud-vault-keys.json
128
128
129
- Or if environments are being used
130
-
131
- .. code-block::bash
132
-
133
- ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/environments/$KAYOBE_ENVIRONMENT/openbao/overcloud-openbao-keys.json
134
-
135
- # For Hashicorp Vault
136
- ansible-vault encrypt --vault-password-file ~/vault.pass $KAYOBE_CONFIG_PATH/environments/$KAYOBE_ENVIRONMENT/vault/overcloud-vault-keys.json
137
-
138
129
Rotating OpenBao certificate on the overcloud hosts
139
130
---------------------------------------------------
140
131
@@ -145,7 +136,7 @@ cannot be unsealed with an expired certificate.
145
136
146
137
1. Delete the old certificate:
147
138
148
- .. code-block::bash
139
+ .. code-block :: bash
149
140
150
141
rm $KAYOBE_CONFIG_PATH /openbao/overcloud.crt
151
142
@@ -154,7 +145,7 @@ cannot be unsealed with an expired certificate.
154
145
155
146
Or if environments are being used
156
147
157
- .. code-block::bash
148
+ .. code-block :: bash
158
149
159
150
rm $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /openbao/overcloud.crt
160
151
@@ -163,13 +154,13 @@ cannot be unsealed with an expired certificate.
163
154
164
155
2. Generate a new certificate (and key):
165
156
166
- .. code-block::bash
157
+ .. code-block :: bash
167
158
168
159
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-deploy-seed.yml
169
160
170
161
3. Encrypt generated key with ansible-vault (use proper location of vault password file)
171
162
172
- .. code-block::bash
163
+ .. code-block :: bash
173
164
174
165
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /openbao/overcloud.key
175
166
@@ -178,7 +169,7 @@ cannot be unsealed with an expired certificate.
178
169
179
170
Or if environments are being used
180
171
181
- .. code-block::bash
172
+ .. code-block :: bash
182
173
183
174
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /openbao/overcloud.key
184
175
@@ -188,13 +179,13 @@ cannot be unsealed with an expired certificate.
188
179
4. Copy the new certificate to the overcloud hosts. Note, if the old
189
180
certificate has expired this will fail on the unseal step.
190
181
191
- .. code-block::bash
182
+ .. code-block :: bash
192
183
193
184
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-deploy-overcloud.yml
194
185
195
186
5. Restart the containers to use the new certificate:
196
187
197
- .. code-block::bash
188
+ .. code-block :: bash
198
189
199
190
kayobe overcloud host command run --command " docker restart openbao" -l controllers
200
191
@@ -203,7 +194,7 @@ cannot be unsealed with an expired certificate.
203
194
204
195
6. If sealed, unseal OpenBao:
205
196
206
- .. code-block::bash
197
+ .. code-block :: bash
207
198
208
199
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-unseal-overcloud.yml
209
200
@@ -230,19 +221,19 @@ For test and development purposes it is possible to use OpenBao as a CA for the
230
221
231
222
1. Run the playbook
232
223
233
- .. code-block::bash
224
+ .. code-block :: bash
234
225
235
226
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-generate-test-external-tls.yml
236
227
237
228
2. Use ansible-vault to encrypt the PEM bundle in $KAYOBE_CONFIG_PATH/kolla/certificates/haproxy.pem. Commit the PEM bundle to the kayobe configuration.
238
229
239
- .. code-block::bash
230
+ .. code-block :: bash
240
231
241
232
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /kolla/certificates/haproxy.pem
242
233
243
234
Or if environments are being used
244
235
245
- .. code-block::bash
236
+ .. code-block :: bash
246
237
247
238
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /kolla/certificates/haproxy.pem
248
239
@@ -251,19 +242,19 @@ Create the internal TLS certificates
251
242
252
243
1. Run the playbook
253
244
254
- .. code-block::bash
245
+ .. code-block :: bash
255
246
256
247
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-generate-internal-tls.yml
257
248
258
249
2. Use ansible-vault to encrypt the PEM bundle in $KAYOBE_CONFIG_PATH/kolla/certificates/haproxy-internal.pem. Commit the PEM bundle and root CA to the kayobe configuration.
259
250
260
- .. code-block::bash
251
+ .. code-block :: bash
261
252
262
253
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /kolla/certificates/haproxy-internal.pem
263
254
264
255
Or if environments are being used
265
256
266
- .. code-block::bash
257
+ .. code-block :: bash
267
258
268
259
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /kolla/certificates/haproxy-internal.pem
269
260
@@ -272,19 +263,19 @@ Create the backend TLS and RabbitMQ TLS certificates
272
263
273
264
1. Run the playbook
274
265
275
- .. code-block::bash
266
+ .. code-block :: bash
276
267
277
268
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-generate-backend-tls.yml
278
269
279
270
2. Use ansible-vault to encrypt the keys in $KAYOBE_CONFIG_PATH/kolla/certificates/<controller>-key.pem. Commit the certificates and keys to the kayobe configuration.
280
271
281
- .. code-block::bash
272
+ .. code-block :: bash
282
273
283
274
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /kolla/certificates/< controller> -key.pem
284
275
285
276
Or if environments are being used
286
277
287
- .. code-block::bash
278
+ .. code-block :: bash
288
279
289
280
ansible-vault encrypt --vault-password-file ~ /vault.pass $KAYOBE_CONFIG_PATH /environments/$KAYOBE_ENVIRONMENT /kolla/certificates/< controller> -key.pem
290
281
@@ -425,12 +416,12 @@ Enable the required TLS variables in kayobe and kolla
425
416
It is important that you are only using admin endpoints for keystone. If
426
417
any admin endpoints exist for other services, they must be deleted e.g.
427
418
428
- .. code-block::bash
419
+ .. code-block :: bash
429
420
430
421
openstack endpoint list --interface admin -f value | \
431
422
awk ' !/keystone/ {print $1}' | xargs openstack endpoint delete
432
423
433
- .. code-block::bash
424
+ .. code-block :: bash
434
425
435
426
kayobe overcloud service deploy
436
427
@@ -442,7 +433,7 @@ Enable the required TLS variables in kayobe and kolla
442
433
443
434
Restart the nova-compute container on all hypervisors:
444
435
445
- .. code-block::bash
436
+ .. code-block :: bash
446
437
447
438
kayobe overcloud host command run --command " systemctl restart kolla-nova_compute-container.service" --become --show-output -l compute
448
439
@@ -475,7 +466,7 @@ Create required configuration in OpenBao
475
466
476
467
1. Run secret-store-deploy-barbican.yml custom playbook
477
468
478
- .. code-block::bash
469
+ .. code-block :: bash
479
470
480
471
kayobe playbook run $KAYOBE_CONFIG_PATH /ansible/secret-store-deploy-barbican.yml
481
472
@@ -513,6 +504,6 @@ Configure Barbican
513
504
Deploy Barbican
514
505
---------------
515
506
516
- .. code-block::bash
507
+ .. code-block :: bash
517
508
518
509
kayobe overcloud service deploy -kt barbican
0 commit comments