Skip to content

Commit b895cb6

Browse files
authored
Merge pull request #41327 from cherraz/BZ2040707
BZ2040707: Style fixes on ZTP assembly
2 parents e8970ca + b529916 commit b895cb6

File tree

42 files changed

+182
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+182
-156
lines changed

modules/ztp-about-ztp-and-distributed-units-on-single-node-openshift-clusters.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// *scalability_and_performance/ztp-zero-touch-provisioning.adoc
3+
// *scalability_and_performance/ztp-deploying-disconnected.adoc
44

55
:_content-type: CONCEPT
66
[id="about-ztp-and-distributed-units-on-single-node-clusters_{context}"]
@@ -16,10 +16,10 @@ With ZTP and AI, you can provision {product-title} single nodes to run your DUs
1616

1717
* A hub cluster running ACM manages a disconnected internal registry that mirrors the {product-title} release images. The internal registry is used to provision the spoke single nodes.
1818
19-
* You manage the bare metal host machines for your DUs in an inventory file that uses YAML for formatting. You store the inventory file in a Git repository.
19+
* You manage the bare-metal host machines for your DUs in an inventory file that uses YAML for formatting. You store the inventory file in a Git repository.
2020
2121
22-
* You install the DU bare metal host machines on site, and make the hosts ready for provisioning. To be ready for provisioning, the following is required for each bare metal host:
22+
* You install the DU bare-metal host machines on site, and make the hosts ready for provisioning. To be ready for provisioning, the following is required for each bare-metal host:
2323
2424
** Network connectivity - including DNS for your network. Hosts should be reachable through the hub and managed spoke clusters. Ensure there is layer 3 connectivity between the hub and the host where you want to install your hub cluster.
2525

@@ -57,7 +57,7 @@ CRs are as follows:
5757
This is the final step of the manifest creation phase.
5858

5959
|BareMetalHost
60-
|Describes the details of the bare metal host, including BMC and credentials details.
60+
|Describes the details of the bare-metal host, including BMC and credentials details.
6161
|===
6262

6363
* When a change is detected in the host inventory repository, a host management event is triggered to provision the new or updated host.

modules/ztp-acm-installing-disconnected-rhacm.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
:_content-type: PROCEDURE
66
[id="installing-disconnected-rhacm_{context}"]
7+
:_content-type: PROCEDURE
78
= Installing Red Hat Advanced Cluster Management in a disconnected environment
89

910
You use {rh-rhacm-first} on a hub cluster in the disconnected environment to manage the deployment of distributed unit (DU) profiles on multiple managed spoke clusters.

modules/ztp-acm-preparing-to-install-disconnected-acm.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Module included in the following assemblies:
33
//
44
// scalability_and_performance/ztp-deploying-disconnected.adoc
5+
:_content-type: CONCEPT
56
[id="ztp-acm-preparing-to-install-disconnected-acm_{context}"]
67
= Preparing the disconnected environment
78

modules/ztp-applying-source-custom-resource-policies.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// scalability_and_performance/ztp-deploying-disconnected.adoc
44

5+
:_content-type: PROCEDURE
56
[id="ztp-applying-source-custom-resource-policies_{context}"]
67
= Applying source custom resource policies
78

modules/ztp-applying-the-ran-policies-for-monitoring-cluster-activity.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// scalability_and_performance/ztp-deploying-disconnected.adoc
44

5+
:_content-type: CONCEPT
56
[id="ztp-applying-the-ran-policies-for-monitoring-cluster-activity_{context}"]
67
= Applying the RAN policies for monitoring cluster activity
78

modules/ztp-checking-the-installation-status.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// *scalability_and_performance/ztp-zero-touch-provisioning.adoc
3+
// *scalability_and_performance/ztp-deploying-disconnected.adoc
44

55
:_content-type: PROCEDURE
66
[id="ztp-checking-the-installation-status_{context}"]
@@ -14,7 +14,7 @@ The ArgoCD pipeline detects the `SiteConfig` and `PolicyGenTemplate` custom reso
1414
+
1515
[source,terminal]
1616
----
17-
$ export CLUSTER=<clusterName>
17+
$ export CLUSTER=<cluster_name>
1818
----
1919
+
2020
[source,terminal]

modules/ztp-checking-the-managed-cluster-status.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// *scalability_and_performance/ztp-zero-touch-provisioning.adoc
3+
// *scalability_and_performance/ztp-deploying-disconnected.adoc
44

55
:_content-type: PROCEDURE
66
[id="ztp-checking-the-managed-cluster-status_{context}"]
@@ -28,40 +28,40 @@ $ oc get managedcluster
2828
+
2929
[source,terminal]
3030
----
31-
$ oc get agent -n <cluster-name>
31+
$ oc get agent -n <cluster_name>
3232
----
3333

3434
. Use the `describe` command to provide an in-depth description of the agent’s condition. Statuses to be aware of include `BackendError`, `InputError`, `ValidationsFailing`, `InstallationFailed`, and `AgentIsConnected`. These statuses are relevant to the `Agent` and `AgentClusterInstall` custom resources.
3535
+
3636
[source,terminal]
3737
----
38-
$ oc describe agent -n <cluster-name>
38+
$ oc describe agent -n <cluster_name>
3939
----
4040

4141
. Check the cluster provisioning status:
4242
+
4343
[source,terminal]
4444
----
45-
$ oc get agentclusterinstall -n <cluster-name>
45+
$ oc get agentclusterinstall -n <cluster_name>
4646
----
4747

4848
. Use the `describe` command to provide an in-depth description of the cluster provisioning status:
4949
+
5050
[source,terminal]
5151
----
52-
$ oc describe agentclusterinstall -n <cluster-name>
52+
$ oc describe agentclusterinstall -n <cluster_name>
5353
----
5454

5555
. Check the status of the managed cluster’s add-on services:
5656
+
5757
[source,terminal]
5858
----
59-
$ oc get managedclusteraddon -n <cluster-name>
59+
$ oc get managedclusteraddon -n <cluster_name>
6060
----
6161

6262
. Retrieve the authentication information of the `kubeconfig` file for the managed cluster:
6363
+
6464
[source,terminal]
6565
----
66-
$ oc get secret -n <cluster-name> <cluster-name>-admin-kubeconfig -o jsonpath={.data.kubeconfig} | base64 -d > <directory>/<cluster-name>-kubeconfig
66+
$ oc get secret -n <cluster_name> <cluster_name>-admin-kubeconfig -o jsonpath={.data.kubeconfig} | base64 -d > <directory>/<cluster_name>-kubeconfig
6767
----

modules/ztp-cluster-provisioning.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// scalability_and_performance/ztp-deploying-disconnected.adoc
44

5+
:_content-type: CONCEPT
56
[id="ztp-cluster-provisioning_{context}"]
67
= Cluster provisioning
78

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// *scalability_and_performance/ztp-zero-touch-provisioning.adoc
3+
// *scalability_and_performance/ztp-deploying-disconnected.adoc
44

55
:_content-type: PROCEDURE
66
[id="ztp-configuring-a-static-ip_{context}"]
@@ -26,10 +26,10 @@ You must create this custom resource before creating the `ClusterDeployment` cus
2626
apiVersion: agent-install.openshift.io/v1beta1
2727
kind: NMStateConfig
2828
metadata:
29-
name: <cluster-name>
30-
namespace: <cluster-name>
29+
name: <cluster_name>
30+
namespace: <cluster_name>
3131
labels:
32-
sno-cluster-<cluster-name>: <cluster-name>
32+
sno-cluster-<cluster-name>: <cluster_name>
3333
spec:
3434
config:
3535
interfaces:
@@ -39,13 +39,13 @@ spec:
3939
ipv4:
4040
enabled: true
4141
address:
42-
- ip: <ip-address> <1>
43-
prefix-length: <public-network-prefix> <2>
42+
- ip: <ip_address> <1>
43+
prefix-length: <public_network_prefix> <2>
4444
dhcp: false
4545
dns-resolver:
4646
config:
4747
server:
48-
- <dns-resolver> <3>
48+
- <dns_resolver> <3>
4949
routes:
5050
config:
5151
- destination: 0.0.0.0/0
@@ -54,16 +54,16 @@ spec:
5454
table-id: 254
5555
interfaces:
5656
- name: "eth0" <5>
57-
macAddress: <mac-address> <6>
57+
macAddress: <mac_address> <6>
5858
----
59-
<1> `ip-address` is the static IP address of the target bare metal machine.
60-
<2> `public-network-prefix` is the static IP address’s subnet prefix for the target bare metal machine.
61-
<3> `dns-resolver` is the DNS server for the target bare metal machine.
62-
<4> `gateway` is the gateway for the target bare metal machine.
63-
<5> `name` must match the name specified in the `interfaces` section.
64-
<6> `mac-address` is the mac address of the interface.
59+
<1> The static IP address of the target bare-metal host.
60+
<2> The static IP address’s subnet prefix for the target bare-metal host.
61+
<3> The DNS server for the target bare-metal host.
62+
<4> The gateway for the target bare-metal host.
63+
<5> Must match the name specified in the `interfaces` section.
64+
<6> The mac address of the interface.
6565

66-
. When creating the `BareMetalHost` custom resource, ensure that one of its mac addresses matches a mac address in the `NMStateConfig` target bare metal machine.
66+
. When creating the `BareMetalHost` custom resource, ensure that one of its mac addresses matches a mac address in the `NMStateConfig` target bare-metal host.
6767

6868
. When creating the `InfraEnv` custom resource, reference the label from the `NMStateConfig` custom resource in the `InfraEnv` custom resource:
6969
+
@@ -72,19 +72,19 @@ spec:
7272
apiVersion: agent-install.openshift.io/v1beta1
7373
kind: InfraEnv
7474
metadata:
75-
name: <cluster-name>
76-
namespace: <cluster-name>
75+
name: <cluster_name>
76+
namespace: <cluster_name>
7777
spec:
7878
clusterRef:
79-
name: <cluster-name>
80-
namespace: <cluster-name>
81-
sshAuthorizedKey: <public-key>
79+
name: <cluster_name>
80+
namespace: <cluster_name>
81+
sshAuthorizedKey: <public_key>
8282
agentLabelSelector:
8383
matchLabels:
84-
cluster-name: <cluster-name>
84+
cluster-name: <cluster_name>
8585
pullSecretRef:
8686
name: assisted-deployment-pull-secret
8787
nmStateConfigLabelSelector:
8888
matchLabels:
89-
sno-cluster-<cluster-name>: <cluster-name> # Match this label
89+
sno-cluster-<cluster-name>: <cluster_name> # Match this label
9090
----

modules/ztp-configuring-ipv6.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// *scalability_and_performance/ztp-zero-touch-provisioning.adoc
3+
// *scalability_and_performance/ztp-deploying-disconnected.adoc
44

55
:_content-type: PROCEDURE
66
[id="ztp-configuring-ipv6_{context}"]
@@ -20,25 +20,25 @@ metadata:
2020
# Only include the annotation if using OVN, otherwise omit the annotation
2121
annotations:
2222
agent-install.openshift.io/install-config-overrides: '{"networking":{"networkType":"OVNKubernetes"}}'
23-
name: <cluster-name>
24-
namespace: <cluster-name>
23+
name: <cluster_name>
24+
namespace: <cluster_name>
2525
spec:
2626
clusterDeploymentRef:
27-
name: <cluster-name>
27+
name: <cluster_name>
2828
imageSetRef:
29-
name: <cluster-image-set>
29+
name: <cluster_image_set>
3030
networking:
3131
clusterNetwork:
3232
- cidr: "fd01::/48"
3333
hostPrefix: 64
3434
machineNetwork:
35-
- cidr: <machine-network-cidr>
35+
- cidr: <machine_network_cidr>
3636
serviceNetwork:
3737
- "fd02::/112"
3838
provisionRequirements:
3939
controlPlaneAgents: 1
4040
workerAgents: 0
41-
sshPublicKey: <public-key>
41+
sshPublicKey: <public_key>
4242
----
4343

4444
. Update the `NMStateConfig` custom resource with the IPv6 addresses you defined.

0 commit comments

Comments
 (0)