E) Add support for Fedora 16
Highlights:
* Add files/rpms/*
* get_packages() only loads deps for services that are enabled
11Apr2012
* change mod_wsgi cwd to $HORIZON_DIR
* fix horizon apache log file name and location
Note: This superceeds https://review.openstack.org/4364
Change-Id: I95486584561e4418907a6a4feb0ffbe4f4ea1843
diff --git a/files/apache-horizon.template b/files/apache-horizon.template
new file mode 100644
index 0000000..e54f16c
--- /dev/null
+++ b/files/apache-horizon.template
@@ -0,0 +1,29 @@
+<VirtualHost *:80>
+ WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
+ WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR%
+
+ SetEnv APACHE_RUN_USER %USER%
+ SetEnv APACHE_RUN_GROUP %GROUP%
+ WSGIProcessGroup horizon
+
+ DocumentRoot %HORIZON_DIR%/.blackhole/
+ Alias /media %HORIZON_DIR%/openstack_dashboard/static
+
+ <Directory />
+ Options FollowSymLinks
+ AllowOverride None
+ </Directory>
+
+ <Directory %HORIZON_DIR%/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ Order allow,deny
+ allow from all
+ </Directory>
+
+ ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
+ LogLevel warn
+ CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
+</VirtualHost>
+
+WSGISocketPrefix /var/run/%APACHE_NAME%