Skip to content

Commit 7265a1b

Browse files
authored
Merge pull request #63873 from skopacz1/OSDOCS-7517
OSDOCS-7517: Using ZTP manifests with agent
2 parents 092ab7d + 2735624 commit 7265a1b

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

installing/installing_with_agent_based_installer/installing-with-agent-based-installer.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ If you do not want to make additional configurations, proceed to xref:../../inst
3636
// Partitioning the disk
3737
include::modules/installation-user-infra-machines-advanced.adoc[leveloffset=+3]
3838

39+
// Optional: Using ZTP manifests
40+
include::modules/installing-ocp-agent-ZTP.adoc[leveloffset=+2]
41+
42+
[role="_additional-resources"]
43+
.Additional resources
44+
* xref:../../installing/installing_with_agent_based_installer/installing-with-agent-based-installer.adoc#sample-ztp-custom-resources_installing-with-agent-based-installer[Sample {ztp} custom resources].
45+
46+
* See xref:../../scalability_and_performance/ztp_far_edge/ztp-deploying-far-edge-clusters-at-scale.adoc#ztp-deploying-far-edge-clusters-at-scale[Challenges of the network far edge] to learn more about {ztp-first}.
47+
3948
// Creating and booting the agent image
4049
include::modules/installing-ocp-agent-boot.adoc[leveloffset=+2]
4150

modules/installing-ocp-agent-ZTP.adoc

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

Comments
 (0)