|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing-with-agent/installing-with-agent.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="installing-ocp-agent-ztp_{context}"] |
| 7 | += Optional: Using ZTP manifests |
| 8 | + |
| 9 | +You can use {ztp-first} manifests to configure your installation beyond the options available through the `install-config.yaml` and `agent-config.yaml` files. |
| 10 | + |
| 11 | +[NOTE] |
| 12 | +==== |
| 13 | +{ztp} manifests can be generated with or without configuring the `install-config.yaml` and `agent-config.yaml` files beforehand. |
| 14 | +If you chose to configure the `install-config.yaml` and `agent-config.yaml` files, the configurations will be imported to the ZTP cluster manifests when they are generated. |
| 15 | +==== |
| 16 | + |
| 17 | +.Prerequisites |
| 18 | + |
| 19 | +* You have placed the `openshift-install` binary in a directory that is on your `PATH`. |
| 20 | +
|
| 21 | +* Optional: You have created and configured the `install-config.yaml` and `agent-config.yaml` files. |
| 22 | +
|
| 23 | +.Procedure |
| 24 | + |
| 25 | +. Use the following command to generate ZTP cluster manifests: |
| 26 | ++ |
| 27 | +[source,terminal] |
| 28 | +---- |
| 29 | +$ openshift-install agent create cluster-manifests --dir <installation_directory> |
| 30 | +---- |
| 31 | ++ |
| 32 | +[IMPORTANT] |
| 33 | +==== |
| 34 | +If you have created the `install-config.yaml` and `agent-config.yaml` files, those files are deleted and replaced by the cluster manifests generated through this command. |
| 35 | +
|
| 36 | +Any configurations made to the `install-config.yaml` and `agent-config.yaml` files are imported to the ZTP cluster manifests when you run the `openshift-install agent create cluster-manifests` command. |
| 37 | +==== |
| 38 | + |
| 39 | +. Navigate to the `cluster-manifests` directory: |
| 40 | ++ |
| 41 | +[source,terminal] |
| 42 | +---- |
| 43 | +$ cd <installation_directory>/cluster-manifests |
| 44 | +---- |
| 45 | + |
| 46 | +. Configure the manifest files in the `cluster-manifests` directory. |
| 47 | +For sample files, see the "Sample GitOps ZTP custom resources" section. |
| 48 | + |
| 49 | +. Disconnected clusters: If you did not define mirror configuration in the `install-config.yaml` file before generating the ZTP manifests, perform the following steps: |
| 50 | + |
| 51 | +.. Navigate to the `mirror` directory: |
| 52 | ++ |
| 53 | +[source,terminal] |
| 54 | +---- |
| 55 | +$ cd ../mirror |
| 56 | +---- |
| 57 | + |
| 58 | +.. Configure the manifest files in the `mirror` directory. |
0 commit comments