Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add toggle to run Nova API and EC2-API under Apache2
Inspired by keystone and rcbops-cookbooks's nova scripts, this review adds apache2 templates for two of the Nova services. Also add code in lib/nova to switch between the old and new ways to these two services. The patch depends on the Nova review mentioned below as the two scripts that are needed will be in Nova's repository. TODO for later would be to switch on NOVA_USE_MOD_WSGI when ENABLE_HTTPD_MOD_WSGI_SERVICES is switched on. Related Nova blueprint: https://blueprints.launchpad.net/nova/+spec/run-nova-services-under-apache2 Depends-On: Idd7d3d1b3cc5770cdecea7afe6db3c89d5b2c0d0 Change-Id: I9fc0c601db2776d3e9084be84065e728e3f5d414
- Loading branch information
Showing
4 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Listen %PUBLICPORT% | ||
|
||
<VirtualHost *:%PUBLICPORT%> | ||
WSGIDaemonProcess nova-api processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV% | ||
WSGIProcessGroup nova-api | ||
WSGIScriptAlias / %PUBLICWSGI% | ||
WSGIApplicationGroup %{GLOBAL} | ||
WSGIPassAuthorization On | ||
<IfVersion >= 2.4> | ||
ErrorLogFormat "%{cu}t %M" | ||
</IfVersion> | ||
ErrorLog /var/log/%APACHE_NAME%/nova-api.log | ||
%SSLENGINE% | ||
%SSLCERTFILE% | ||
%SSLKEYFILE% | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Listen %PUBLICPORT% | ||
|
||
<VirtualHost *:%PUBLICPORT%> | ||
WSGIDaemonProcess nova-ec2-api processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV% | ||
WSGIProcessGroup nova-ec2-api | ||
WSGIScriptAlias / %PUBLICWSGI% | ||
WSGIApplicationGroup %{GLOBAL} | ||
WSGIPassAuthorization On | ||
<IfVersion >= 2.4> | ||
ErrorLogFormat "%{cu}t %M" | ||
</IfVersion> | ||
ErrorLog /var/log/%APACHE_NAME%/nova-ec2-api.log | ||
%SSLENGINE% | ||
%SSLCERTFILE% | ||
%SSLKEYFILE% | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters