Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ifdef::include_when_13,include_when_17[]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was having issues when doing this as a wrapper in the master.adoc, so I moved it into the assembly directly. When building I wasn't getting build errors, but the documentation would just stop at various points after this ifdef.

ifdef::context[:parent-context: {context}]

[id="assembly-renewing-the-amq-interconnect-certificate_{context}"]
= Renewing the {MessageBus} certificate

Expand All @@ -18,3 +18,4 @@ include::../modules/proc_updating-the-amq-interconnect-ca-certificate.adoc[level
//reset the context
ifdef::parent-context[:context: {parent-context}]
ifndef::parent-context[:!context:]
endif::include_when_13,include_when_17[]
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,37 @@ $ oc get secret/default-interconnect-selfsigned -o jsonpath='{.data.ca\.crt}' |
. Log into your {OpenStackShort} undercloud.
. Edit the `stf-connectors.yaml` file to contain the new caCertFileContent. For more information, see xref:configuring-the-stf-connection-for-the-overcloud_assembly-completing-the-stf-configuration[].

ifdef::include_when_13[]
. Generate an inventory file:
+
[source,bash,options="nowrap"]
----
[stack@undercloud-0 ~]$ tripleo-ansible-inventory --static-yaml-inventory ./tripleo-ansible-inventory.yaml
----
endif::include_when_13[]

. Copy the `STFCA.pem` file to each {OpenStackShort} overcloud node:
+
[source,bash,options="nowrap"]
ifdef::include_when_13[]
----
[stack@undercloud-0 ~]$ ansible -i tripleo-ansible-inventory.yaml allovercloud -b -m copy -a "src=STFCA.pem dest=/var/lib/config-data/puppet-generated/metrics_qdr/etc/pki/tls/certs/CA_sslProfile.pem"
----
endif::include_when_13[]
ifdef::include_when_17[]
----
[stack@undercloud-0 ~]$ ansible -i overcloud-deploy/overcloud/tripleo-ansible-inventory.yaml allovercloud -b -m copy -a "src=STFCA.pem dest=/var/lib/config-data/puppet-generated/metrics_qdr/etc/pki/tls/certs/CA_sslProfile.pem"
----
endif::include_when_17[]

. Restart the metrics_qdr container on each {OpenStackShort} overcloud node:
+
[source,bash,options="nowrap"]
ifdef::include_when_13[]
----
[stack@undercloud-0 ~]$ tripleo-ansible-inventory --static-yaml-inventory ./tripleo-ansible-inventory.yaml
[stack@undercloud-0 ~]$ ansible -i tripleo-ansible-inventory.yaml allovercloud -m shell -a "sudo podman restart metrics_qdr"
----
endif::include_when_13[]
ifdef::include_when_16+include_before_17[]
----
[stack@undercloud-0 ~]$ ansible -i tripleo-ansible-inventory.yaml allovercloud -m shell -a "sudo podman restart metrics_qdr"
----
endif::include_when_16+include_before_17[]
ifdef::include_when_17[]
----
[stack@undercloud-0 ~]$ ansible -i overcloud-deploy/overcloud/tripleo-ansible-inventory.yaml allovercloud -m shell -a "sudo podman restart metrics_qdr"
Expand Down