15 Commits

Author SHA1 Message Date
Sean Dague
584d90ec56 add emacs shell-script tagging
for files that don't start with a #! or end in .sh, the added tags
are nice for emacs users to automatically switch to the right mode.

Change-Id: If4b93e106191bc744ccad8420cef20e751cdf902
2013-03-29 14:36:49 -04:00
Akihiro MOTOKI
7104ab406a Use example settings in horizon repo as local_settings.py
The current horizon_settings.py in devstack is out-of-date and we
tend to forget to update this file. This commit changes devstack
to use the example settings in horizon repo.

Change-Id: I0bb6af21a806a72ed59f31b094dd21da85ca335e
2013-03-29 03:01:50 +09:00
Eugene Nikanorov
b663b33f51 Configures horizon lbaas dashboard
fixes bug 1151865

Change-Id: I1f2c7f7f11170571fe37a9cf5444d26c1c8de959
2013-03-12 13:34:48 +04:00
Steven Dake
532908f602 Remove error from httpd/apache on unstack.sh
Fedora/RHEL use httpd for the package name of httpd.  This is handled
in other parts of the horizon startup code, but not in shutdown.

Change-Id: I2732dad652d83a9cbe055f5f077678b7111ca782
Fixes: bug #1099538
2013-01-14 12:40:33 -07:00
Vincent Untz
f2a18c065e Two small fixes for openSUSE support
- Use right package files for openSUSE in tools/info.sh
- Use a2enmod to enable the wsgi apache module

Change-Id: I51e3019be32dc0938674c9c8d285a55f5b023707
2012-12-12 16:14:16 +01:00
Vincent Untz
00011c0847 Add is_fedora and exit_distro_not_supported functions
Between is_fedora, is_ubuntu and is_suse, we can make the code a bit
simpler to read. We also use exit_distro_not_supported to identify
places where we need implementation details for new distros.

As "/sbin/service --skip-redirect" is Fedora-specific, guard this with a
is_fedora test too.

Change-Id: Ic77c0697ed9be0dbb5df8e73da93463e76025f0c
2012-12-07 09:06:07 +01:00
Jenkins
fe89e72659 Merge "Add is_ubuntu function" 2012-12-05 19:47:03 +00:00
Jenkins
f99e75d366 Merge "Fix the default for APACHE_GROUP" 2012-12-05 19:43:26 +00:00
Vincent Untz
c18b965152 Add is_ubuntu function
This replaces all of the [[ "$os_PACKAGE" = "deb" ]] tests, except when
those tests are before straight calls to dpkg.

Change-Id: I8a3ebf1b1bc5a55d736f9258d5ba1d24dabf04ea
2012-12-04 18:30:13 +01:00
Jenkins
1cd8a4725b Merge "Add package names for openSUSE/SLE" 2012-12-04 17:18:44 +00:00
Martin Vidner
2ed63f4f8e Fix the default for APACHE_GROUP
It should be the group of the effective apache user.

For example, on openSUSE, we use wwwrun:www for apache and $USER:users
for users.

Change-Id: I8e12a8d90d45cfd18e67a41cf5462216ae404733
2012-12-04 10:35:53 +01:00
Sean Dague
e1864c37f3 enable mod_wsgi on horizon_init
on a clean ubuntu environment wsgi wasn't getting enabled
ensure that it actually turns on wsgi to that apache can start

Change-Id: I9c74f7c5d5d2f995843b2a649a52f7159c7de314
2012-11-29 14:20:34 -05:00
Vincent Untz
ca5c471386 Add package names for openSUSE/SLE
Change-Id: I487cc7b8bd228ff77c9881528e3395cbe3c43d4a
2012-11-28 16:26:53 +01:00
Vincent Untz
856a11e0e4 Add partial openSUSE/SLE support
Note that this is the first part of the support. A second part involves
dealing with the package names.

Among the changes:
 - add several functions to determine some distro-specific behavior (how
   to call usermod, if some features are available on the distro, etc.)
 - correctly detect openSUSE and SLE in GetOSVersion, and set DISTRO
   accordingly
 - new is_suse() function to check if running on a SUSE-based distro
 - use zypper to install packages
 - adapt apache virtual host configuration for openSUSE
 - some simple fixes (path to pip, mysql service name)

Change-Id: Id2f7c9e18a1c4a7b7cea262ea7959d183e4b0cf0
2012-11-28 16:22:12 +01:00
Sean Dague
b562e6a710 move horizon logic to lib to clean up stack.sh
pre holiday refactor extrodinare, get the horizon code
over fully into lib/horizon so that all these fixes aren't
scattered through stack.sh

Change-Id: I7f26c5c6708d5693048eb7b1ce792122adbc7351
2012-11-26 10:24:09 -05:00