Skip to content

Commit 368411f

Browse files
aneta-petrovaLennonkamaximiliankolb
authored
Fix issues reported by asciidoctor-dita-vale (Configuring Load Balancer) (#4178)
* Address asciidoctor-dita-vale issues * Convert xrefs * Turn installing LB into an assembly * Move Verification heading out of the snippet --------- Co-authored-by: Lena Ansorgová <[email protected]> Co-authored-by: Maximilian Kolb <[email protected]>
1 parent d0a65f4 commit 368411f

22 files changed

+219
-110
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
3+
include::modules/con_installing-and-configuring-the-load-balancer.adoc[]
4+
5+
include::modules/proc_installing-the-load-balancer.adoc[leveloffset=+1]
6+
7+
include::modules/ref_ports-configuration-for-the-load-balancer.adoc[leveloffset=+1]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
3+
include::modules/con_registering-clients-to-the-load-balancer.adoc[]
4+
5+
include::modules/proc_setting-the-load-balancer-for-host-registration.adoc[leveloffset=+1]
6+
7+
include::modules/proc_registering-a-host-to-the-load-balancer-using-web-ui.adoc[leveloffset=+1]
8+
9+
include::modules/proc_registering-a-host-to-the-load-balancer-using-cli.adoc[leveloffset=+1]
10+
11+
include::modules/proc_registering-a-host-to-the-load-balancer-using-api.adoc[leveloffset=+1]
12+
13+
ifdef::satellite[]
14+
include::modules/proc_registering-clients-using-the-bootstrap-script.adoc[leveloffset=+1]
15+
endif::[]

guides/common/modules/con_configuring-smartproxyservers-with-custom-ssl-certificates-for-load-balancing-without-puppet.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ You can configure one or more {SmartProxyServers} that use custom SSL certificat
77
To do this, configure and install certificates on each {SmartProxyServer} you want to use for load balancing.
88

99
If you use Puppet in your {Project} deployment, the configuration steps are different.
10-
See xref:configuring-{smart-proxy-context}-servers-with-custom-ssl-certificates-for-load-balancing-with-puppet_{context}[].
10+
See xref:common/modules/con_configuring-smartproxyservers-with-custom-ssl-certificates-for-load-balancing-with-puppet.adoc#configuring-{smart-proxy-context}-servers-with-custom-ssl-certificates-for-load-balancing-with-puppet_{context}[].

guides/common/modules/con_configuring-smartproxyservers-with-default-ssl-certificates-for-load-balancing-without-puppet.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
You can configure one or more {SmartProxyServers} that use default SSL certificates for load balancing.
77

88
If you use Puppet in your {Project} deployment, the configuration steps are different.
9-
See xref:configuring-{smart-proxy-context}-servers-with-default-ssl-certificates-for-load-balancing-with-puppet_{context}[].
9+
See xref:common/modules/con_configuring-smartproxyservers-with-default-ssl-certificates-for-load-balancing-with-puppet.adoc#configuring-{smart-proxy-context}-servers-with-default-ssl-certificates-for-load-balancing-with-puppet_{context}[].
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:_mod-docs-content-type: CONCEPT
2+
3+
[id="installing-and-configuring-the-load-balancer"]
4+
= Installing and configuring the load balancer
5+
6+
{Team} provides general guidance for configuring an HAProxy load balancer using {EL} 9.
7+
However, you can install any suitable load balancing software solution that supports TCP forwarding.

guides/common/modules/con_registering-clients-to-the-load-balancer.adoc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,3 @@ To balance the load of network traffic from clients, you must register the clien
77

88
To consume container content from a load balancer regardless of client registration, use the load balancer hostname with the container client of choice.
99
For example, use `podman login {loadbalancer-example-com}` to log in.
10-
11-
ifdef::orcharhino,satellite[]
12-
.Next steps
13-
* xref:Registering_Clients_Using_Host_Registration_{context}[]
14-
endif::[]
15-
ifdef::satellite[]
16-
* xref:Registering_Clients_Using_the_Bootstrap_Script_{context}[]
17-
endif::[]
18-
19-
ifndef::orcharhino,satellite[]
20-
include::snip_host-registration-steps.adoc[]
21-
endif::[]

guides/common/modules/proc_configuring-repositories-foreman-el.adoc

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

55
include::proc_configuring-repositories-el.adoc[]
66

7+
.Verification
78
include::snip_verification-enabled-repolist.adoc[]

guides/common/modules/proc_configuring-repositories-proxy.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ Configure repositories to install your {SmartProxyServer}.
2424
--enable={RepoRHEL9ServerSatelliteMaintenanceProjectVersion}
2525
----
2626

27+
.Verification
2728
include::snip_verification-enabled-repolist.adoc[]

guides/common/modules/proc_configuring-repositories-satellite.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
--enable={RepoRHEL9ServerSatelliteMaintenanceProjectVersion}
1919
----
2020
21+
.Verification
2122
include::snip_verification-enabled-repolist.adoc[]

guides/common/modules/proc_installing-the-load-balancer.adoc

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
[id="Installing_the_Load_Balancer_{context}"]
3+
[id="installing-the-load-balancer"]
44
= Installing the load balancer
55

66
The following example provides general guidance for configuring an HAProxy load balancer using {EL} 9.
@@ -24,24 +24,7 @@ However, you can install any suitable load balancing software solution that supp
2424
----
2525
# semanage boolean --modify --on haproxy_connect_any
2626
----
27-
. Configure the load balancer to balance the network load for the ports as described in xref:ports-configuration-for-the-load-balancer[].
28-
For example, to configure ports for HAProxy, edit the `/etc/haproxy/haproxy.cfg` file to correspond with the table.
29-
ifdef::satellite[]
30-
For more information, see https://access.redhat.com/solutions/4062981[Configuration example for haproxy.cfg for HAProxy load balancer with Satellite 6] in the _Red{nbsp}Hat Knowledgebase_.
31-
endif::[]
32-
+
33-
[id="ports-configuration-for-the-load-balancer"]
34-
.Ports configuration for the load balancer
35-
[cols="3,1,1,2,3",options="header"]
36-
|====
37-
| Service | Port | Mode | Balance Mode | Destination
38-
| HTTP | 80 | TCP | roundrobin | port 80 on all {SmartProxyServers}
39-
| HTTPS and RHSM | 443 | TCP | source | port 443 on all {SmartProxyServers}
40-
| Anaconda for template retrieval | 8000 | TCP | roundrobin | port 8000 on all {SmartProxyServers}
41-
| Puppet (_Optional_)| 8140 | TCP | roundrobin | port 8140 on all {SmartProxyServers}
42-
| PuppetCA (_Optional_)| 8141 | TCP | roundrobin | port 8140 only on the system where you configure {SmartProxyServer} to sign Puppet certificates
43-
| {SmartProxy} HTTPS for Host Registration and optionally OpenSCAP| {smartproxy_port} | TCP | roundrobin | port {smartproxy_port} on all {SmartProxyServers}
44-
|====
27+
. Configure the load balancer to balance the network load for the ports as described in xref:common/modules/ref_ports-configuration-for-the-load-balancer.adoc#ports-configuration-for-the-load-balancer[].
4528
. Configure the load balancer to disable SSL offloading and allow client-side SSL certificates to pass through to back end servers.
4629
This is required because communication from clients to {SmartProxyServers} depends on client-side SSL certificates.
4730
. Start and enable the HAProxy service:

0 commit comments

Comments
 (0)