configure-ironic-api-mod_wsgi.inc (ironic-17.0.2) | : | configure-ironic-api-mod_wsgi.inc (ironic-17.0.3) | ||
---|---|---|---|---|
Configuring ironic-api behind mod_wsgi | Configuring ironic-api behind mod_wsgi | |||
-------------------------------------- | -------------------------------------- | |||
Bare Metal service comes with an example file for configuring the | Bare Metal service comes with an example file for configuring the | |||
``ironic-api`` service to run behind Apache with mod_wsgi. | ``ironic-api`` service to run behind Apache with mod_wsgi. | |||
#. Install the apache service: | #. Install the apache service: | |||
RHEL7/CentOS7:: | Fedora/RHEL8/CentOS8:: | |||
sudo yum install httpd | ||||
Fedora:: | ||||
sudo dnf install httpd | sudo dnf install httpd | |||
Debian/Ubuntu:: | Debian/Ubuntu:: | |||
apt-get install apache2 | apt-get install apache2 | |||
SUSE:: | SUSE:: | |||
zypper install apache2 | zypper install apache2 | |||
#. Download the ``etc/apache2/ironic`` file from the | #. Download the ``etc/apache2/ironic`` file from the | |||
`Ironic project tree <https://opendev.org/openstack/ironic/raw/branch/master/ etc/apache2/ironic>`_ | `Ironic project tree <https://opendev.org/openstack/ironic/raw/branch/master/ etc/apache2/ironic>`_ | |||
and copy it to the apache sites: | and copy it to the apache sites: | |||
Fedora/RHEL7/CentOS7:: | Fedora/RHEL8/CentOS8:: | |||
sudo cp etc/apache2/ironic /etc/httpd/conf.d/ironic.conf | sudo cp etc/apache2/ironic /etc/httpd/conf.d/ironic.conf | |||
Debian/Ubuntu:: | Debian/Ubuntu:: | |||
sudo cp etc/apache2/ironic /etc/apache2/sites-available/ironic.conf | sudo cp etc/apache2/ironic /etc/apache2/sites-available/ironic.conf | |||
SUSE:: | SUSE:: | |||
sudo cp etc/apache2/ironic /etc/apache2/vhosts.d/ironic.conf | sudo cp etc/apache2/ironic /etc/apache2/vhosts.d/ironic.conf | |||
skipping to change at line 59 | skipping to change at line 55 | |||
directory. | directory. | |||
#. Modify the ``Directory`` directive to set the path to the Ironic API code. | #. Modify the ``Directory`` directive to set the path to the Ironic API code. | |||
#. Modify the ``ErrorLog`` and ``CustomLog`` to redirect the logs | #. Modify the ``ErrorLog`` and ``CustomLog`` to redirect the logs | |||
to the right directory (on Red Hat systems this is usually under | to the right directory (on Red Hat systems this is usually under | |||
/var/log/httpd). | /var/log/httpd). | |||
#. Enable the apache ``ironic`` in site and reload: | #. Enable the apache ``ironic`` in site and reload: | |||
Fedora/RHEL7/CentOS7:: | Fedora/RHEL8/CentOS8:: | |||
sudo systemctl reload httpd | sudo systemctl reload httpd | |||
Debian/Ubuntu:: | Debian/Ubuntu:: | |||
sudo a2ensite ironic | sudo a2ensite ironic | |||
sudo service apache2 reload | sudo service apache2 reload | |||
SUSE:: | SUSE:: | |||
End of changes. 3 change blocks. | ||||
7 lines changed or deleted | 3 lines changed or added |