Skip to content

Commit c259179

Browse files
authored
Merge pull request #96673 from dfitzmau/OCPBUGS-56925-17
[enterprise-4.17] OCPBUGS-56925: Updated the creating-manifest-file-customized-br-ex-br…
2 parents 90053f6 + f589bfa commit c259179

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
@@ -151,24 +151,42 @@ apiVersion: machineconfiguration.openshift.io/v1
151151
kind: MachineConfig
152152
metadata:
153153
labels:
154-
machineconfiguration.openshift.io/role: worker <1>
155-
name: 10-br-ex-worker <2>
154+
machineconfiguration.openshift.io/role: worker
155+
name: 10-br-ex-worker <1>
156156
spec:
157157
config:
158158
ignition:
159159
version: 3.2.0
160160
storage:
161161
files:
162162
- contents:
163-
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <3>
163+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <2>
164+
mode: 0644
165+
overwrite: true
166+
path: /etc/nmstate/openshift/worker-0.yml <3>
167+
- contents:
168+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
169+
mode: 0644
170+
overwrite: true
171+
path: /etc/nmstate/openshift/worker-1.yml <3>
172+
# ...
173+
----
174+
<1> The name of the policy.
175+
<2> Writes the encoded base64 information to the specified path.
176+
<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.
177+
+
178+
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:
179+
+
180+
[source,yaml]
181+
----
182+
# ...
183+
- contents:
184+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
164185
mode: 0644
165186
overwrite: true
166187
path: /etc/nmstate/openshift/cluster.yml
167188
# ...
168189
----
169-
<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.
170-
<2> The name of the policy.
171-
<3> Writes the encoded base64 information to the specified path.
172190
endif::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
173191

174192
ifdef::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
@@ -249,8 +267,8 @@ endif::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
249267
* 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.
250268
251269
ifeval::["{context}" == "ipi-install-post-installation-configuration"]
252-
:!postinstall-bare-metal:
270+
:!postinstall-bare-metal-ipi:
253271
endif::[]
254272
ifeval::["{context}" == "bare-metal-configuration"]
255-
:!postinstall-bare-metal:
273+
:!postinstall-bare-metal-upi:
256274
endif::[]

0 commit comments

Comments
 (0)