$ /etc/bp2/haproxy/ssl
Add HAproxy with SSL certificates (optional)
Blue Planet HAproxy is a high availability (HA) component that provides load balancing and recovery. Blue Planet HA manages multiple hardware instances (cluster) as a single site.
To deploy HAproxy:
-
You must have an odd number of nodes to form a cluster.
-
Each node in the cluster must have a logical IP address that can be assigned to any other node.
By default, HAProxy has a self-signed SSL certificate. Ciena recommends that you replace the default certificate with one signed by a trusted authority. The SSL configuration directory is volume-mounted from the host machine into the Docker container. The HAProxy container retrieves the keys after you place them in the proper host location.
Complete the following steps to update the HAProxy SSL certificates.
-
Create a
bp2/haproxy/ssl
directory on the host. (If the directory already exists, you can skip this step.) -
Copy the trusted SSL keys found on Blue Planet to a temporary folder as shown in this example.
$ cat <domain>.crt <domain>.key > server.pem
-
Go to the SSL directory,
/etc/bp2/haproxy/ssl
, and delete the default SSL certificates. -
Move the
server.pem
file to thessl
directory.$ mv server.pem /etc/bp2/haproxy/ssl/.
-
Set the file permissions for
server.pem
.$ chmod 600 /etc/bp2/haproxy/ssl/server.pem
-
For a multi-host HA cluster, synchronize the HAProxy configuration across all hosts that are on multi-host sites. (If you are configuring a single-host site, you can skip this step.)
$ bp2-site sync-site-config
-
For a multi-host HA cluster, verify the synchronization. (If you are configuring a single-host site, you can skip this step.)
$ bp2-site diff-site-config
-
Start Solution Manager as a root user. Solution Manager is active when you see the
(cmd)
prompt.$ sudo -s # solman (cmd)
-
Restart the HAProxy containers.
NoteThe software versions listed in this procedure are examples. To view the version numbers of your software, enter the
docker images
command with thegrep
option from the Linux command prompt.The syntax is:
docker images | grep solution-platform.
(cmd) solution_app_restart bpdr.io.blueplanet.platform:16.09.02 haproxy
-
(optional) Complete these steps if you want to customize the global SSL default bind and cipher values.
-
Create a file named
ssl_default_bind_options
containing the values to use in the global HAProxy configuration section. This example disablesSSL v3
andtls v1.0
.echo 'no-sslv3 no-tlsv10' > /etc/bp2/haproxy/ssl_default_bind_options
-
Create a file named
ssl_default_bind_cipher
containing the values to use in the global HAProxy configuration section. This example sets the following ciphers:ECDH+AESGCM:DH+AESGCM:ECDH+AES256
.echo 'ECDH+AESGCM:DH+AESGCM:ECDH+AES256' > /etc/bp2/haproxy/ ssl_default_bind_ciphers
-
The directory
/usr/share/haproxy/ssl_default_bind_<options|ciphers>.eg
contains default values within the HAProxy container. You can use the.eg
files as a starting point for config files in/etc/bp2/haproxy
.
-