Fix dashboard login errors

Set WSGI process to run as horizon user

Set ownership on secret_key file so it can can be read by dashboard

Make ALLOWED_HOSTS configurable in local_settings.py for use in
production.

Added test for ALLOWED_HOSTS

Change-Id: Ide506511c3dcc075f181e47b2147af2d6107acf7
Closes-Bug: #1267691
change tests to use SLES platform instead of openSUSE

Change-Id: I4625fc433d6cce3f31891fc9b06a2dde1945efc0
Update how dashboard's secret key is handled

Currently, you can override the 'secret_key_path' attribute but this
does not get reflected in the dashboard configuration.  This change
does the following:

- updates local_settings.py to use the specified secret key
- adds a default attribute for 'secret_key_content' which when set
overrides the contents of the secret key (useful if you have multiple
web servers running dashboard and they all need the same secret key)

Change-Id: Ia82947280a64f6b1ec693ee273ac386a71be57ad
Closes-Bug: #1279863
Make more dashboard options configurable

This change adds the following new attributes:

node['openstack']['dashboard']['password_autocomplete']
node['openstack']['dashboard']['neutron']['enable_lb']
node['openstack']['dashboard']['neutron']['enable_quotas']

Changing these will be reflected in the local_settings.py
configuration file.

Note that there are additional neutron options, however I've opted to
only do enable_lb and enable_quotas as we have a load balancer recipe
in the network cookbook, and enable_quotas defaults to True.  The
remaining neutron options can also be turned into attributes if/when we
support that functionality.

Change-Id: I6fd9f7df58f46861c6fa8d8c6ed502fb554d951e
Merge "Update how dashboard's secret key is handled"
Merge "Make more dashboard options configurable"
Only run the syncdb when set the session backend to sql.

From the horizon manual
http://docs.openstack.org/developer/horizon/topics/deployment.html#database,
we need the database only when set the session backend to sql, so we
just need run syncdb at that case.
Another reason I don't want to run this syncdb is, normally the web
application (here is the horizon) should not access the database server
directly in data center for security consideration.

Change-Id: I39323fc797bcb9a9b821e955d8f648a4271086b1
Adding ChefSpec::Converge to spec_helper.rb

Change-Id: I0ab3a560923d77c097383e4f4c512c34ff3815cd
Addresses: blueprint lint-and-unit-testing-for-havana