Installing and Configuring OpenStack in Oracle® Solaris 11.2

Exit Print View

Updated: April 2015
 
 

How to Configure Horizon

  1. Install the Horizon package.
    horizon# pkg install horizon
  2. Generate certificates for use by Horizon.

    The following commands generate self-signed certificates for use by Horizon and copy the OpenStack dashboard configuration file to the Apache configuration file directory. For more information about creating self-signed certificates, see the Apache SSL/TLS Strong Encryption: FAQ.

    controller# DASHBOARD=/etc/openstack_dashboard
    controller# openssl req -new -x509 -nodes \
    -out horizon.crt -keyout horizon.key
    controller# mv horizon.crt horizon.key ${DASHBOARD}
    controller# chmod 0600 ${DASHBOARD}/horizon.*
    controller# sed \
    -e "/SSLCertificateFile/s:/path.*:${DASHBOARD}/horizon.crt:" \
    -e "/SSLCACertificateFile/d" \
    -e "/SSLCertificateKeyFile/s:/path.*:${DASHBOARD}/horizon.key:" \
    < /etc/apache2/2.2/samples-conf.d/openstack-dashboard-tls.conf \
    > /etc/apache2/2.2/conf.d/openstack-dashboard-tls.conf
  3. In the ~/conf.d/openstack-dashboard-tls.conf file, specify the site address and server name of the Horizon package to the following parameters:
    RedirectPermanent=site-address
    ServerName=server-name

    Note -  In the current sample three-node configuration, the two parameters would specify the controller node system.
  4. Perform one of the following operations to read the new configuration file:
    • If the Apache service is disabled, enable it.

      controller# svcadm enable apache22
    • If the Apache service is online, restart it.

      controller# svcs apache22
      STATE          STIME    FMRI
      online         Jul_07   svc:/network/http:apache22
      controller# svcadm restart apache22