1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/ipi-modify-install-config-for-a-disconnected-registry.adoc

69 lines
1.9 KiB
Plaintext

// Module included in the following assemblies:
//
// * list of assemblies where this module is included
// install/installing_bare_metal/ipi/ipi-install-installation-workflow.adoc
:_mod-docs-content-type: PROCEDURE
[id="ipi-modify-install-config-for-a-disconnected-registry_{context}"]
= Modify the install-config.yaml file to use the disconnected registry
On the provisioner node, the `install-config.yaml` file should use the newly created pull-secret from the `pull-secret-update.txt` file. The `install-config.yaml` file must also contain the disconnected registry node's certificate and registry information.
.Procedure
. Add the disconnected registry node's certificate to the `install-config.yaml` file:
+
[source,terminal]
----
$ echo "additionalTrustBundle: |" >> install-config.yaml
----
+
The certificate should follow the `"additionalTrustBundle: |"` line and be properly indented, usually by two spaces.
+
[source,terminal]
----
$ sed -e 's/^/ /' /opt/registry/certs/domain.crt >> install-config.yaml
----
. Add the mirror information for the registry to the `install-config.yaml` file:
+
[source,terminal]
----
$ echo "imageContentSources:" >> install-config.yaml
----
+
[source,terminal]
----
$ echo "- mirrors:" >> install-config.yaml
----
+
[source,terminal]
----
$ echo " - registry.example.com:5000/ocp4/openshift4" >> install-config.yaml
----
+
Replace `registry.example.com` with the registry's fully qualified domain name.
+
[source,terminal]
----
$ echo " source: quay.io/openshift-release-dev/ocp-release" >> install-config.yaml
----
+
[source,terminal]
----
$ echo "- mirrors:" >> install-config.yaml
----
+
[source,terminal]
----
$ echo " - registry.example.com:5000/ocp4/openshift4" >> install-config.yaml
----
+
Replace `registry.example.com` with the registry's fully qualified domain name.
+
[source,terminal]
----
$ echo " source: quay.io/openshift-release-dev/ocp-v4.0-art-dev" >> install-config.yaml
----