3.3. Adding a Content Delivery Server


To add a new CDS after Red Hat Update Infrastructure is deployed, perform the following steps.

Note

In this section, cds02.example.com is the example hostname for a new CDS.

Procedure 3.5.  Generate SSL certificate for the new CDS

  1. Generate the CDS SSL key, using the following command:
    # openssl genrsa -out ssl_cds02.key 2048
    
  2. Generate a certificate request using the openssl command:
    # openssl req -new -key ssl_cds02.key -out ssl_cds02.csr
    The tool will prompt you for further information, and then create an output file called ssl_cds02.csr.
  3. Use the CSR file to create a SSL certificate for the new CDS instance with the following command:
    # openssl x509 -req -days 365 -CA ca.crt -CAkey ca.key -in ssl_cds02.csr -out ssl_cds02.crt

Procedure 3.6. Prepare the answers file and generate RPM for the new CDS

  1. Change directory to the answers file created in Procedure 3.4, “Editing the Answers File”
    # cd /etc/rhui/myanswersfile
  2. Edit the /etc/rhui/myanswersfile answers file using your preferred text editor to include the correct details under [cds-2].
    [cds-2]
    rpm_name: rh-cds2-config
    hostname: cds02.example.com
    ssl_cert: ssl_cds02.crt
    ssl_key: ssl_cds02.key
    
  3. To execute the file and create the configuration RPMs, change to root user and run the rhui-installer command:
    # rhui-installer /etc/rhui/myanswersfile
  4. Finally, install /tmp/rhui/rh-cds2-config-2.1-2.el6.noarch.rpm on cds02.example.com.
    # yum install /tmp/rhui/rh-cds2-config-2.1-2.el6.noarch.rpm
    
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.