Fixed gate by Updating Gemfile to pin Rake to 10.1.1

The latest Rake update requires Ruby >= 1.9. Bundler in the
current gate uses 1.8.x. This update fixes the gate by pinning
Rake to the last known working version.

Change-Id: I55f10d8dbb946183f8350980ca8be134f245fcab
Release 3.1.0

Updated Modulefile and README.md for 3.1.0 release.

Change-Id: I6732d73b88c10e782db1d982b46dbf18e55563a2
Update gitignore file

Change-Id: I08bea8f0445106be97c2efb17435331cbfc2b292
Deprecation of keystone_scheme,host,port params

Use deprecated parameters if any value is passed to preserve
proper backward compatibility.

Change-Id: I685b2430c06893dd3e80c4900e832024f0436ea8
Closes-bug: #1273442

Conflicts:
	manifests/init.pp
	spec/classes/horizon_init_spec.rb
Add ability to disable configuration of apache

Add configure_apache parameter to add the ability to disable
configuration of Apache vhost for Horizon.

- Move Apache configuration to horizon::wsgi::apache class.
- Move management of logdir resource to horizon::wsgi::apache class.

Change-Id: I5aeb577ce827e923ed01a73cca1bd79789f81eff
Closes-bug: #1190282
Parameterize OPENSTACK_NEUTRON_NETWORK settings

Horizon can provide GUI support for Neutron's LBaaS, FWaaS, VPNaas,
and other services. However the settings to enable these is currently
hardcoded in the local_settings.py.erb template rather than being
parameterized, making it impossible for users to enable support for
these functions.  This patch adds a parameter hash to enable users to
select how they want to configure Neutron services and sets default
values to match the old hardcoded settings to maintain backward
compatibility.

Change-Id: Ibfa75a83a88d9bb26d65c026c7f913e000bce13f
Closes-Bug: #1274382
Add ability to configure AVAILABLE_REGIONS

Example on how to use this setting:

  class { 'horizon':
    available_regions => [
      ['http://region-1.example.com:5000/v2.0', 'Region-1'],
      ['http://region-2.example.com:5000/v2.0', 'Region-2']
    ]
  }

Change-Id: I75a123d1fda3861d467dd6b05f1e621b41d8c30b
Closes-bug: #1280365
Fixed Horizon SSL issues

Apache fails to start when the SSLEngine directive is turned
on outside of a vhost. Horizon configuration has been turned
into two apache vhosts. When SSL is enabled it will create
the second vhost for SSL. Additionally ssl_redirect was added
to have a redirect from http to https.

Closes-Bug: #1246742
Change-Id: Icf2a4bed8980137181810f2f5d3a38db54af4443

Conflicts:
	Modulefile
Parameterize OPENSTACK_HYPERVISOR_FEATURES settings

Horizon can provide GUI support for some hypervisor specific features.
However the setting to enable can_set_moint_point is currently hardcoded
in the local_settings.py.erb template rather than being
parameterized, making it impossible for users to enable support for
these functions. This patch adds a parameter hash to enable users to
select how they want to configure Hypervisor features and sets default
values to match the old hardcoded settings to maintain backward
compatibility.

Closes-bug: #1271635

Change-Id: Id73b9986e561f1dc7557ae725518ec7694fc0da2
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
ensure online cache is and can be refreshed

We use `COMPRESS_OFFLINE = True` which disable the online cache
generation. On Debian, the cache is not pre generated, unlike
Ubuntu.
The changes add be introduce in Ubuntu horizon 2012.2~rc1-0ubuntu1.

So, basicly, this changes ensure Horizon with the COMPRESS_OFFLINE=True
parameter will continue to work in this situations:
- Horizon template has been changes, python-lesscpy is required to
  regenerate the cache.
- the package doesn't provide pre-cached files (Debian), we generate the
  cache.

For the record, a issue has been opened on Debian bug tracker regard
this situation: http://bugs.debian.org/739698

See:
  I6671938a87744a4dd0b84021ca87cd49aea10741
  Ie290701b00c97352838e13182b940a6de46a591f

Change-Id: I813b5f6067bb6ecce279cab7278d9227c4d31d28
improve WSGI configuration

This patch improves the WSGI support:
 - introduce a wsgi_user and wsgi_group to avoid confusion with
   apache_user and apache_group
 - ensure openstack-dashboard.conf will not conflict with apache::vhost
 - ensure the WSGI user can write in the log file
 - ability to define the number of WSGI process/thread
 - disable the SSL vhost if needed
 - create the /static alias using puppet-apache "alias" key

Closes-bug: #1265169

Change-Id: I39b52b2bc51ba04d59de81dc45b5a4ad82d0dc2c
bump minimal stdlib version to 4.0.0

This has been pointed out by Mathieu Gagné during the I39b52b2b review,
We use any2array since Icf2a4bed8980137181810f2f5d3a38db54af4443. This
parser function was introduced in puppetlabs-stdlib 4.0.0.

Change-Id: Ib0e9821d8e9a1296d7b931de57b8a6b94269df23
ability to pass extra parameters to the vhost

In some situation, it is useful to be able to pass extra parameters
to apache::vhost.
This change introduces a new parameter to pass a hash. It is use to
overwrite or add new parameters.

The variable uses an agnostic vhost_* name for the case we introduce
the support of a new server (e.g: nginx).

Closes-bug: #1294339

Change-Id: I749f005964c3bc549d724329d2dc9bc4f6dbcf6f
Don't override the policy files in the local settings

The setting override currently doesn't add anything (the file names are
kept the same) but causes new files added upstream to be missed as the
entire POLICY_FILES dictionary is being overriden.

Change-Id: I2ce4cace705e89ef2fbb4a2f4e57c9074fc512ac
Closes-Bug: #1296636
Updated to match semver and release notes.

Before this update the Modulefile was not following semver in
relation to stable/havana, and the README files were not in sync.
This update introduces proper semver and consistency.

Change-Id: Ia0c2f0823de1766b3892a85112e2c89b82525ea5
Fix wsgi_user and wsgi_group for RHEL

In RHEL, wsgi_user and wsgi_group should be "apache" and not
"dashboard".

Closes-bug #1224770
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>

Change-Id: I253b90a55d33d927e318400a69243925b7245aa4
Fix log ownership and WSGIProcess* settings for Red Hat releases

According to python-django-horizon's SPEC file log file should
be owned by user 'apache'. According to openstack-dashboard.conf
file located in the same package WSGIProcessGroup should
be 'dashboard' and the name should be identical as WSGIDaemonProcess'
name. It is required to set /var/run/wsgi as WSGISocketPrefix.

[1] http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html

Change-Id: I9aca382798c7ab37e267c9988b3947e1b3780712
Enabled the vhost priority to be set.

Previously, the apache vhost priority was hard coded to '15'.
This does not allow the vhost priority to be managed, even with
$extra_params, due to apache looking for either default_vhost OR
priority.

Change-Id: I58df7ce45564093711a12cacb2f85f74c5ed4069
Vendor any2array function to support stdlib 3.2

Many installations are pinned to stdlib 3.2. This change vendors
the any2arry function from stdlib 4 until Puppet Enterprise
catches up. At that point the vendored function will be removed.

Change-Id: Ide8a9c526ba36a0641c0e118c3280be0e766bd14
Add option to set temp upload dir for image upload

The default Django location for file uploads including new Glance
images is /tmp, this adds an optional configuration parameter to set
this to another location which could be a separate filesystem if
needs be.

Change-Id: Ifd5a56fe08f39d72ecdc8d9e2b4976b0dbc87c54