Skip to content

Commit 74a49c6

Browse files
committed
OCPBUGS-56925: Updated the creating-manifest-file-customized-br-ex-bridge.adoc for individual hostname paths
1 parent b037d25 commit 74a49c6

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
@@ -126,24 +126,42 @@ apiVersion: machineconfiguration.openshift.io/v1
126126
kind: MachineConfig
127127
metadata:
128128
labels:
129-
machineconfiguration.openshift.io/role: worker <1>
130-
name: 10-br-ex-worker <2>
129+
machineconfiguration.openshift.io/role: worker
130+
name: 10-br-ex-worker <1>
131131
spec:
132132
config:
133133
ignition:
134134
version: 3.2.0
135135
storage:
136136
files:
137137
- contents:
138-
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <3>
138+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration> <2>
139+
mode: 0644
140+
overwrite: true
141+
path: /etc/nmstate/openshift/worker-0.yml <3>
142+
- contents:
143+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
144+
mode: 0644
145+
overwrite: true
146+
path: /etc/nmstate/openshift/worker-1.yml <3>
147+
# ...
148+
----
149+
<1> The name of the policy.
150+
<2> Writes the encoded base64 information to the specified path.
151+
<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.
152+
+
153+
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:
154+
+
155+
[source,yaml]
156+
----
157+
# ...
158+
- contents:
159+
source: data:text/plain;charset=utf-8;base64,<base64_encoded_nmstate_configuration>
139160
mode: 0644
140161
overwrite: true
141162
path: /etc/nmstate/openshift/cluster.yml
142163
# ...
143164
----
144-
<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.
145-
<2> The name of the policy.
146-
<3> Writes the encoded base64 information to the specified path.
147165
endif::postinstall-bare-metal[]
148166

149167
ifdef::postinstall-bare-metal[]

0 commit comments

Comments
 (0)