Skip to content

Commit 6c8d067

Browse files
authored
Merge pull request #94273 from dfitzmau/OCPBUGS-56925
OCPBUGS-56925: Updated the creating-manifest-file-customized-br-ex-br…
2 parents c7a4fd2 + 74a49c6 commit 6c8d067

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,42 @@ apiVersion: machineconfiguration.openshift.io/v1
146146
kind: MachineConfig
147147
metadata:
148148
labels:
149-
machineconfiguration.openshift.io/role: worker <1>
150-
name: 10-br-ex-worker <2>
149+
machineconfiguration.openshift.io/role: worker
150+
name: 10-br-ex-worker <1>
151151
spec:
152152
config:
153153
ignition:
154154
version: 3.2.0
155155
storage:
156156
files:
157157
- contents:
158-
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <3>
158+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <2>
159+
mode: 0644
160+
overwrite: true
161+
path: /etc/nmstate/openshift/worker-0.yml <3>
162+
- contents:
163+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
164+
mode: 0644
165+
overwrite: true
166+
path: /etc/nmstate/openshift/worker-1.yml <3>
167+
# ...
168+
----
169+
<1> The name of the policy.
170+
<2> Writes the encoded base64 information to the specified path.
171+
<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.
172+
+
173+
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:
174+
+
175+
[source,yaml]
176+
----
177+
# ...
178+
- contents:
179+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
159180
mode: 0644
160181
overwrite: true
161182
path: /etc/nmstate/openshift/cluster.yml
162183
# ...
163184
----
164-
<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.
165-
<2> The name of the policy.
166-
<3> Writes the encoded base64 information to the specified path.
167185
endif::postinstall-bare-metal[]
168186

169187
ifdef::postinstall-bare-metal[]

0 commit comments

Comments
 (0)