summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-06 15:21:39 +0000
committerGerrit Code Review <review@openstack.org>2015-08-06 15:21:39 +0000
commite81008c21b87a15087c8f8d9fe0a7255b6843e4b (patch)
treefb9c34b64c73a1ddb6f7b033f2445fc1e7324444
parent24da11e97f204988fddf40bc7a6009a78c29dcb8 (diff)
parentf14b5669edcf3dfae2aba45f04b5a507f6133258 (diff)
downloadironic-e81008c21b87a15087c8f8d9fe0a7255b6843e4b.tar.gz
Merge "Document configuring ironic-api behind mod_wsgi"
-rw-r--r--doc/source/deploy/install-guide.rst54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/source/deploy/install-guide.rst b/doc/source/deploy/install-guide.rst
index c5928d689..b4b70910d 100644
--- a/doc/source/deploy/install-guide.rst
+++ b/doc/source/deploy/install-guide.rst
@@ -284,6 +284,60 @@ so that the Bare Metal Service is configured for your needs.
service ironic-conductor restart
+Configuring ironic-api behind mod_wsgi
+--------------------------------------
+
+Ironic comes with an example file for configuring the ``ironic-api``
+service to run behind Apache with mod_wsgi.
+
+1. Install the apache service::
+
+ RHEL7/CentOS/Fedora 21 (or lower):
+ sudo yum install httpd
+
+ Fedora 22 (or higher):
+ sudo dnf install httpd
+
+ Debian/Ubuntu:
+ apt-get install apache2
+
+
+2. Copy the ``etc/apache2/ironic`` file under the apache sites::
+
+ Fedora/RHEL7/CentOS:
+ sudo cp etc/apache2/ironic /etc/httpd/conf.d/ironic.conf
+
+ Debian/Ubuntu:
+ sudo cp etc/apache2/ironic /etc/apache2/sites-available/ironic.conf
+
+
+3. Edit the recently copied ``<apache-configuration-dir>/ironic.conf``:
+
+ - Modify the ``WSGIDaemonProcess``, ``APACHE_RUN_USER`` and
+ ``APACHE_RUN_GROUP`` directives to set the user and group values to
+ an appropriate user on your server.
+
+ - Modify the ``WSGIScriptAlias`` directive to point to the
+ *ironic/api/app.wsgi* script.
+
+ - Modify the ``Directory`` directive to set the path to the Ironic API code.
+
+
+4. Enable the apache ``ironic`` in site and reload::
+
+ Fedora/RHEL7/CentOS:
+ sudo systemctl reload httpd
+
+ Debian/Ubuntu:
+ sudo a2ensite ironic
+ sudo service apache2 reload
+
+
+.. note::
+ The file ironic/api/app.wsgi is installed with the rest of the ironic
+ application code, and should not need to be modified.
+
+
Configure Compute Service to use the Bare Metal Service
=======================================================