Skip to content

Commit ff0e379

Browse files
authored
Merge pull request #96672 from dfitzmau/OCPBUGS-56925-18
[enterprise-4.18] OCPBUGS-56925: Updated the creating-manifest-file-customized-br-ex-br…
2 parents 38aac52 + c8e86fa commit ff0e379

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

modules/creating-manifest-file-customized-br-ex-bridge.adoc

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,24 +152,42 @@ apiVersion: machineconfiguration.openshift.io/v1
152152
kind: MachineConfig
153153
metadata:
154154
labels:
155-
machineconfiguration.openshift.io/role: worker <1>
156-
name: 10-br-ex-worker <2>
155+
machineconfiguration.openshift.io/role: worker
156+
name: 10-br-ex-worker <1>
157157
spec:
158158
config:
159159
ignition:
160160
version: 3.2.0
161161
storage:
162162
files:
163163
- contents:
164-
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <3>
164+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <2>
165+
mode: 0644
166+
overwrite: true
167+
path: /etc/nmstate/openshift/worker-0.yml <3>
168+
- contents:
169+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
170+
mode: 0644
171+
overwrite: true
172+
path: /etc/nmstate/openshift/worker-1.yml <3>
173+
# ...
174+
----
175+
<1> The name of the policy.
176+
<2> Writes the encoded base64 information to the specified path.
177+
<3> For each node in your cluster, specify the hostname path to your node and the base-64 encoded Ignition configuration file data for the machine type. The `worker` role is the default role for nodes in your cluster. The `.yaml` extension does not work when specifying the short hostname, `hostname -s`, path for each node or all nodes in the `MachineConfig` manifest file.
178+
+
179+
Alternatively, if you have a single global configuration specified in an `/etc/nmstate/openshift/cluster.yml` configuration file that you want to apply to all nodes in your cluster, you do not need to specify the short hostname path for each node, such as `/etc/nmstate/openshift/<node_hostname>.yml`. For example:
180+
+
181+
[source,yaml]
182+
----
183+
# ...
184+
- contents:
185+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
165186
mode: 0644
166187
overwrite: true
167188
path: /etc/nmstate/openshift/cluster.yml
168189
# ...
169190
----
170-
<1> For each node in your cluster, specify the hostname path to your node and the base-64 encoded Ignition configuration file data for the machine type. If you have a single global configuration specified in an `/etc/nmstate/openshift/cluster.yml` configuration file that you want to apply to all nodes in your cluster, you do not need to specify the hostname path for each node. The `worker` role is the default role for nodes in your cluster. The `.yaml` extension does not work when specifying the hostname path for each node or all nodes in the `MachineConfig` manifest file.
171-
<2> The name of the policy.
172-
<3> Writes the encoded base64 information to the specified path.
173191
endif::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
174192

175193
ifdef::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
@@ -250,8 +268,8 @@ endif::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
250268
* Scaling compute nodes to apply the manifest object that includes a customized `br-ex` bridge to each compute node that exists in your cluster. For more information, see "Expanding the cluster" in the _Additional resources_ section.
251269
252270
ifeval::["{context}" == "ipi-install-post-installation-configuration"]
253-
:!postinstall-bare-metal:
271+
:!postinstall-bare-metal-ipi:
254272
endif::[]
255273
ifeval::["{context}" == "bare-metal-configuration"]
256-
:!postinstall-bare-metal:
274+
:!postinstall-bare-metal-upi:
257275
endif::[]

0 commit comments

Comments
 (0)