Skip to content

Commit e352ff7

Browse files
authored
Merge pull request #96674 from dfitzmau/OCPBUGS-56925-16
[enterprise-4.16] OCPBUGS-56925: Updated the creating-manifest-file-customized-br-ex-br…
2 parents 8996c4e + fa8a81d commit e352ff7

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
@@ -133,24 +133,42 @@ apiVersion: machineconfiguration.openshift.io/v1
133133
kind: MachineConfig
134134
metadata:
135135
labels:
136-
machineconfiguration.openshift.io/role: worker <1>
137-
name: 10-br-ex-worker <2>
136+
machineconfiguration.openshift.io/role: worker
137+
name: 10-br-ex-worker <1>
138138
spec:
139139
config:
140140
ignition:
141141
version: 3.2.0
142142
storage:
143143
files:
144144
- contents:
145-
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <3>
145+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <2>
146+
mode: 0644
147+
overwrite: true
148+
path: /etc/nmstate/openshift/worker-0.yml <3>
149+
- contents:
150+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
151+
mode: 0644
152+
overwrite: true
153+
path: /etc/nmstate/openshift/worker-1.yml <3>
154+
# ...
155+
----
156+
<1> The name of the policy.
157+
<2> Writes the encoded base64 information to the specified path.
158+
<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.
159+
+
160+
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:
161+
+
162+
[source,yaml]
163+
----
164+
# ...
165+
- contents:
166+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
146167
mode: 0644
147168
overwrite: true
148169
path: /etc/nmstate/openshift/cluster.yml
149170
# ...
150171
----
151-
<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.
152-
<2> The name of the policy.
153-
<3> Writes the encoded base64 information to the specified path.
154172
endif::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
155173

156174
ifdef::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
@@ -231,9 +249,9 @@ endif::postinstall-bare-metal-ipi,postinstall-bare-metal-upi[]
231249
* 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.
232250
233251
ifeval::["{context}" == "ipi-install-post-installation-configuration"]
234-
:!postinstall-bare-metal:
252+
:!postinstall-bare-metal-ipi:
235253
endif::[]
236254
ifeval::["{context}" == "bare-metal-configuration"]
237-
:!postinstall-bare-metal:
255+
:!postinstall-bare-metal-upi:
238256
endif::[]
239257

0 commit comments

Comments
 (0)