60 Commits

Author SHA1 Message Date
Zuul
9aadbba2f0 Merge "Add support for using distribution packages for OpenStack services" 2018-07-25 12:47:47 +00:00
Markos Chandras
2af1b7a6c4 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Implements: blueprint openstack-distribution-packages
Change-Id: Ie6eeff541a319967715e619dcdc26177aec5be72
2018-07-23 17:29:14 +01:00
Zuul
51979f4951 Merge "Add support for the default_dns_nameservers variable" 2018-07-21 13:24:32 +00:00
Adrien Cunin
2eec94604c New horizon_enable_router variable
Set to False if you don't want router support in Horizon or if you don't
have Neutron L3 agent deployed.

Change-Id: I72eaa7829372b91c286efa06263e3f78b86ef35c
2018-07-20 15:41:33 +02:00
Robert Donovan
b88e5f6015 Add support for the default_dns_nameservers variable
This variable was introduced in Newton and allows you to specify a
list of default DNS servers populated when creating a tenant subnet.

Change-Id: I7c6767bb883296c55b7a7302d7af8a8721fd2844
2018-07-05 10:45:54 +01:00
Jimmy McCrory
b775123f54 Add MySQL connection SSL support
When 'horizon_galera_use_ssl' is True, use an encrypted connection to
the database using either a self-signed or user-provided CA certificate.

A new non-voting test has been added to verify that the role remains
functional when enabling SSL features.

Change-Id: Ie7e0e5f7fc89978126d0d735367d8ecf3e007cfc
Partial-Bug: 1667789
2017-12-14 10:26:37 -08:00
Major Hayden
a1de0aa24f
Remove enable_{firewall,vpn} options
This patch removes the enable_firewall/enable_vpn options since
they were removed in Pike (deprecated since Juno). The FWaaS panel
is still enabled via the modern method (copying files into place).

The VPNaaS variable is no longer being used, so it is being removed.

Closes-Bug: 1735199
Change-Id: I7d42b2a857a7f0c9401becc68a152102fb702508
2017-11-29 09:49:40 -06:00
Guoqiang Ding
935b20deb4 Update the doc link
Change-Id: I688f0d54056ef94835b1e9ccf5ed98143863d442
2017-11-13 18:13:56 +08:00
Byron McCollum
941398b22c IMAGES_ALLOW_LOCATION Wrongly Templated As String
In the template file horizon_local_settings.py.j2, the
IMAGES_ALLOW_LOCATION value is being set as a string, when it should
be a bool.

Change-Id: I6589fe93abab76243d30136babaa7b1e95989243
Closes-Bug: 1727438
2017-10-25 11:54:49 -05:00
Jimmy McCrory
fb66ce62a9 Sort key-value pairs in local_settings dictionaries
The AVAILABLE_THEMES and LAUNCH_INSTANCE_DEFAULTS options are currently
templated as unsorted dictionaries. Sort them to avoid unnecessary
config changes and service restarts.

Change-Id: I7bfd5248be78efa3a87bd56637ea1082d391a3e0
2017-07-19 11:31:39 -07:00
Jenkins
a8d2af5a71 Merge "Improve Python 3 compatibility" 2017-06-29 13:49:37 +00:00
Jimmy McCrory
9d72a661c7 Improve Python 3 compatibility
Use dict.items() instead of dict.iteritems() for Python 3 compatibility.

Change-Id: If2484febbab4db20539749094517240b5f17d1ab
Implements: blueprint goal-python35
2017-06-28 15:02:48 -07:00
Marc Gariepy
2d6664d3c5 Allow possibility to disable heatstack password
This allow the possibility to disable the heat stack password field.

Change-Id: I8dcf212398570c5d124bac769614b968d8b8cb12
2017-06-28 08:51:35 -04:00
Adrien Cunin
cd604dac71 Added support for horizon_launch_instance_defaults
This variable allows customizing the default values for properties found
in the Launch Instance modal, using the LAUNCH_INSTANCE_DEFAULTS config
option.

Change-Id: I1a795b788b3fbc78e814c93f56fd996090c7463b
2017-06-20 11:59:06 +02:00
Marc Gariepy
e20f12cc3a Add IMAGES_ALLOW_LOCATION configuration option.
IMAGES_ALLOW_LOCATION is needed to be able to specify an external location
during image creation.

Change-Id: I102a14577415549ac12e6cf7d62bafd48d95c1bf
2017-06-02 15:27:09 +00:00
Marc Gariepy
5f325f86be Use migrate for the DB and NullHandler config
syncdb is deprecated since Django 1.7 and removed in 1.9, using the "new"
command.

Configure the logging NullHandler properly

Change-Id: If1365e76cdd0f66b7ef2a90cc52b4692f68a149f
2017-06-02 10:31:10 -04:00
Duong Ha-Quang
1283febbb1 Move WEBSSO_INITIAL_CHOICE setting to variable
Currently, WEBSSO_INITIAL_CHOICE is hard-coded in template, this patchset
convert WEBSSO_INITIAL_CHOICE setting to variable horizon_websso_initial_choice
in main.yml

Change-Id: I7e18ec981f6a575ee81da1429545f8b46a771fb8
Closes-bug: #1660322
2017-05-29 17:22:28 +07:00
Kevin Carter
fbd1492f1f ensure OPENSTACK_KEYSTONE_URL is always configured
This is being moved in the template file such that it will ensure the
variable is always rendered. This change is needed for multi-region
clouds.

Change-Id: Ib3fa401e6ecf4053ef0a4a5bb9d18ae18ae7f07a
Closes-Bug: #1660344
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-02-22 20:01:10 +00:00
Jesse Pretorius
52626d87d0 Expose horizon_disallow_iframe_embed in defaults
In order to expose the variable in documentation,
it is defined in defaults and the value is always
templated. The default value is set to the same
as the upstream default.

Change-Id: I3a8785de414a82931b1089f7396b0fbe3b68ae7d
2017-02-10 17:18:44 +00:00
Cao Xuan Hoang
e80da542a0 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I8e5f49a4cf955206523c6ff49c672ad96dbc1e03
2017-02-06 16:56:30 +07:00
Jean-Philippe Evrard
83efb05c6c Make possible to use embed iframes
Because horizon local settings cannot use config_template, we
have to maintain the features possible in the template ourselves.

This adds the possibility to allow/deny the use of embedded
iframes.

Change-Id: I12470ac156a433eee795b4090b21d106418ecd5a
2017-01-09 09:03:19 +00:00
Andy McCrae
eb339ee4ec Fix keystone_sp conditional
In patch https://review.openstack.org/#/c/309425/ we defaulted the
keystone_sp var to exist and be set to "{}". All conditionals were
changed to check if keytone_sp was "{}" rather than to check if it is
defined.

The horizon role still does a conditional to check if the var is
defined, rather than a check to see if it is "{}". This causes the
conditional to fail when the var is defaulted in user_variables, but has
no values in it.

Change-Id: Ib4cd0b168ec09a222e7a1da5672395852f3f8a1c
2016-11-25 12:24:42 +00:00
Kevin Carter
c0abd22c49
Added missing horizon local settings
In Newton several config settings were added which are missing from our
configuration. Without these options Horizon is incomplete.

Change-Id: Ie6e9f65153bf5305ee197a81df28ff4e52f9a572
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-21 09:24:46 -05:00
Kevin Carter
92d57b525e
Add conditional for multi-domain support
When running a multi-domain cloud the constant
"OPENSTACK_KEYSTONE_DEFAULT_DOMAIN" needs to be omitted from the
rendered "local_setting.py" file. This change keys off of the
"horizon_keystone_multidomain_support" value and should it be `true`
the constant "OPENSTACK_KEYSTONE_DEFAULT_DOMAIN" will be omitted from
config.

Closes-Bug: #1629865
Change-Id: I81c5d17bfd4d946567a49db9adfb4285d05303c3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-14 14:33:32 -05:00
Nolan Brubaker
c7ebd28341 Add variable override for OPENSTACK_KEYSTONE_ADMIN_ROLES
As Horizon treats admins differently and can't discern what roles are
administrative in nature, we have to tell it if there are roles
beyond/besides "admin".

If not overriden by the user, then the default is `['admin']` as seen
in the code:
https://github.com/openstack/horizon/blob/stable/mitaka/openstack_dashboard/utils/identity.py#L20-L25.

Closes-Bug: #1614213

Change-Id: I5e475db52be7d6390a1ab29a08b58fc102e16037
Co-Author: Corey Wright <corey.wright@rackspace.com>
2016-08-17 17:05:11 -04:00
Travis Truman
49376929fb Add support for custom Horizon themes
Deployers can now configure their own custom
themes and set them as the default theme using the
Horizon configuration values AVAILABLE_THEMES and
DEFAULT_THEME

See http://docs.openstack.org/developer/horizon/topics/settings.html#available-themes
for further details on the configuration.

Change-Id: I90b1cb45c851eb654638d82b83af56f93a642895
Closes-Bug: #1590839
2016-07-11 15:41:02 -04:00
Kevin Carter
39839111c0 Added variable to allow for arbitrary HORIZON_CONFIG
A new variable has been added to allow a deployer to set arbitrary
configuration options.

Closes-Bug: #1598143
Change-Id: Ic2d83d5b581046314145ecd0201087cc1682716b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-07-06 21:04:17 +00:00
Major Hayden
6a84a06a79
Add enable_lb option back to horizon
The change from I7b384c2f78aa0aa622d23b8b4ee317dd99f396e0 in the
neutron-lbaas-dashboard brought back the ``enable_lb`` option. This
patch adds the option back into the Horizon configuration. The option
is only needed when the next-gen LBaaSv2 panels are activated.

Closes-bug: 1593074

Change-Id: I166512fc77e48c123116dc6dd95262b2e1d5f6cf
2016-06-21 23:07:53 -05:00
Alexey Dushechkin
e0d3d44b64 Add Nova extensions blacklisting
Operators may want to mask certain Nova extensions
in Horizon for performance reasons. This change
adds configurable extensions list to mask.

Change-Id: I8dff0647608833ac370a4fdab7db7dd6f39aa7c3
2016-06-10 03:34:58 +00:00
Kevin Carter
76105724cd Enable ha router support in Horizon
This patch creates a variable to control ha router support in Horizon
and enables it by default.

Release notes are included.

Change-Id: I5edb7576d977bc558d9411dca62a029eb1856000
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-12 23:02:30 -05:00
Jenkins
8343d55bc4 Merge "Enable new LBaaS panel in Horizon" 2016-05-07 18:06:46 +00:00
Major Hayden
1111f3d629 Enable IPv6 support in Horizon
This patch creates a variable to control IPv6 support in Horizon
and enables it by default.

Release notes are included.

Depends-On: I2d5300d4d5b02df3351ab52b1be32dd60241d34b
Change-Id: I4133d97f3a0aa4886b4b6f6ca3d6fb151231b0ef
2016-05-05 12:30:37 +00:00
Major Hayden
568debe270 Enable new LBaaS panel in Horizon
The new LBaaS v2 panel for Horizon in Mitaka and Newton is installed
as a plugin. This patch enables the plugin as long as
`horizon_enable_neutron_lbaas` is set to True. The reference to the
older built-in LBaaS dashboard has been removed since it only works
with LBaaS v1.

Release notes are included with the patch.

Depends-On: I2d5300d4d5b02df3351ab52b1be32dd60241d34b
Change-Id: I2b1d77983598fb14fbf9ff7f23870cf767135811
2016-05-05 12:30:30 +00:00
Major Hayden
8667dce5e1
Optionally allow autocomplete in Horizon
Horizon disables password autocompletion by default. This causes
problems for users who use password managers and want to store
their Horizon credentials. This patch adds a variable that allows
a deployer to override this default.

Release notes are included.

Change-Id: I8eaa5a1773e6f182c436b312f2733a21505a867c
Closes-Bug: 1570505
2016-04-14 13:32:52 -05:00
Kevin Carter
f21074337f
Add option to enable from VPNaaS in Horizon
This change simple provides an option to enable vpnaas panels
within horizon.

Change-Id: I2343f91e5ae1664fc8ab9ba1fbc3196b4d92078c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-13 12:49:36 -05:00
Kevin Carter
785b1d49eb Add ability to configure Neutron FWaaS
This patch adds the ability for a deployer to enable the FWaaS panels
in Horizon.

Re-Implementation-Of: https://review.openstack.org/#/c/275894/9

Change-Id: I682171333328e42895ec1a4d2d0cc5d2b2fcdcd9
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-03-17 17:14:19 +00:00
Logan V
1f52acc1c3 Add support for Horizon customization module
Allow the deployer to specify a customization module to be uploaded and configured
in Horizon. The process is outlined here in the Horizon documentation:
http://docs.openstack.org/developer/horizon/topics/customizing.html#horizon-customization-module-overrides

Change-Id: Ie638c826abe43f1f484f16e60b90fbe25c684c6e
2016-03-16 06:57:44 +00:00
Travis Truman
39c950ba4e Role should default to no external SSL termination
This decouples the role more completely from the AIO
build default configuration in
Id87fab39c929e0860abbc3755ad386aa6893b151
which enables SSL termination at the HAProxy LB.

Variable naming should match what is in
Id87fab39c929e0860abbc3755ad386aa6893b151 to allow
the AIO configuration to enable external SSL termination.

And, bringing in changes from
I1c654501d0c8573734c52b9c20ba4b5713d667c1
that were missed.

Change-Id: I0fd26ec60f02e68688ea864d0d7880f73e6df780
2016-03-07 10:05:12 -05:00
Jean-Philippe Evrard
c62b54d891 Allow Horizon Custom Branding
This introduces 2 variables:
``horizon_site_name`` and ``horizon_custom_uploads``.

The former needs to set with a string. It will edit the
local settings of horizon to add the cloud's name.

The latter is a dict, that contains path to source and destination
files that the deployer wants to upload.
For example, if setting the dict as followed:

horizon_custom_uploads:
  logo:
    src: '/etc/openstack_deploy/files/logo.png'
    dest: "img/logo.png"
  logosplash:
    src: '/etc/openstack_deploy/files/logo-splash.png'
    dest: "img/logo-splash.png"

You'll overwrite the img/logo.png and img/logo-splash.png files
on the horizon nodes (inside their folder
"{{ horizon_lib_dir }}/openstack_dashboard/static/dashboard/")
with the files stored on the deployment node at the src location.

Change-Id: I1a74e74968d09f6e299dbd965f9c87368c4d646c
2015-11-26 14:08:09 +00:00
Bjoern Teipel
e9e62910d3 Implement Neutron LBAAS using haproxy
This patch implements the LBAAS agent using haproxy into the
neutron_agents container group.

The neutron-lbaas-agent service is disabled by default but can be
enabled by setting neutron_plugin_base in user_variables to include
'neutron.services.loadbalancer.plugin.LoadBalancerPlugin'.

The LBaaS Agent conf file entries can be set using the dict
'neutron_lbaas_agent_ini_overrides'

DocImpact
Closes-Bug: #1491968
Change-Id: I0aacdde6001836b7c0d881d935a5531d3ce04590
Co-Authored-By: Serge van Ginderachter <serge@vanginderachter.be>
2015-10-23 11:31:52 +00:00
Jenkins
3ff4f5bc37 Merge "Update Horizon configuration for Liberty" 2015-10-18 16:18:04 +00:00
Steve Lewis
364b50944f Update Horizon configuration for Liberty
Update Horizon local settings to include changes in Liberty. Some of
the configuration changes have been made to bring the comments into
line with the upstream configuration file to make comparing them
simpler in the future.

DocImpact
UpgradeImpact
Implements: blueprint liberty-release
Change-Id: Ib9546e6c8542981691348c23f7c475535efeb6da
2015-10-16 11:23:53 +01:00
Miguel Grinberg
e7ce7cec51 Add horizon setting for cinder backup
This change makes the cinder backup enable flag in the Horizon
configuration a variable.

It also enables this flag automatically through group_vars when
cinder_service_backup_program_enabled = True.

Change-Id: Ib64532bbd7a3774f16766de0d3d221579aecc9ff
Closes-Bug: #1504279
2015-10-15 17:50:48 -07:00
Jesse Pretorius
6546cc6609 Enable Horizon multidomain configuration
This patch implements the ability to configure Horizon for use with multiple
Keystone v3 Domains.

Change-Id: I0872e0aa5c40c9e8b27597ae684468f7fb47a285
Closes-Bug: #1489406
2015-10-15 00:29:39 +00:00
Ian Cordasco
3f90bae4c3 Add default user role for Keystone & Horizon and tasks to create it
In Keystone v3, the _member_ role is not implicitly created on first
use like it is in v2.

This patch adds variables to define the default role name for users:
 - keystone_default_role_name:
   this is the default role name from Keystone's point of view
 - horizon_default_role_name:
   this is the default user role from Horizon's point of view

Both Keystone and Horizon's tasks ensure that the role they're using
are registered in the Keystone database.

To maintain backwards compatibility the default value for both
variables is '_member_'.

DocImpact
Closes-bug: 1474916
Change-Id: Ie01e1771c0b435815dfe55fc0ba9a6d803ebe958
2015-08-21 12:53:33 +01:00
Matt Thompson
5bd7a5540c Allow nova key/partition/password injection
This commit adds the following new variables to customise whether nova
will allow key/partition/password injection:

nova_libvirt_inject_key
nova_libvirt_inject_partition
nova_libvirt_inject_password

Additionally, the following variable has been added to allow setting
password via Horizon:

horizon_can_set_password

Lastly, password injection can now be tested with tempest via:

tempest_compute_change_password

Note that all variables have been defaulted to their current values.

Closes-Bug: #1469238

Change-Id: Iff434ed7c042f7990990485c34d0f35b9a7baa7a
2015-08-13 09:25:17 +00:00
Miguel Grinberg
a7080fdfa2 Keystone Federation Service Provider Configuration
This patch adds the ability to configure Keystone as a Service
Provider (SP) for a Federated Identity Provider (IdP).

* New variables to configure Keystone as a service provider are now
  supported under a root `keystone_sp` variable. Example configurations
  can be seen in Keystone's defaults file. This configuration includes
  the list of identity providers and trusted dashboards. (At this time
  only one identity provider is supported).

* Identity provider configuration includes the remote-to-local user
  mapping and the list of remote attributes the SP can obtain from the
  IdP.

* Shibboleth is installed and configured in the Keystone containers when
  SP configuration is present.

* Horizon is configured for SSO login

DocImpact
UpgradeImpact
Implements: blueprint keystone-federation
Change-Id: I78b3d740434ea4b3ca0bd9f144e4a07026be23c6
Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2015-08-07 08:44:51 +00:00
Jesse Pretorius
1e2c983bd3 Enable Horizon to consume a Keystone v3 API endpoint
This patch enables Horizon to consume a Keystone v3 API endpoint.

This patch also introduces two variables to allow the endpoint to be
specified independently if required:
 - horizon_keystone_host: this defaults to the internal LB IP address
 - horizon_keystone_endpoint: this defaults to the internal Keystone
   endpoint

This patch also does the following:
 - properly consumes the horizon_ssl_no_verify role setting;
 - includes a little comment cleanup which does nothing but clutter
   the local_settings configuration file.

Closes-Bug: #1478996
Change-Id: I5b7ceeecab072ead6fd380dcef7a48f1978a56f2
2015-07-31 08:25:09 +00:00
Jenkins
fdd40bc5cd Merge "Enable all services to use Keystone 'insecurely'" 2015-07-10 16:53:24 +00:00
Jesse Pretorius
1078a4e806 Enable all services to use Keystone 'insecurely'
This patch introduces an insecure flag for the Keystone internal
 and admin endpoints:

* keystone_service_adminuri_insecure
* keystone_service_internaluri_insecure

Both values default to false. If you have setup SSL endpoints
for Keystone using an untrusted certificate then you should
set the appropriate flag to true in your user_variables.

This patch is used to enable testing and development with
Keystone SSL endpoints without having to make use of SSL
certificates signed by a trusted, public CA.

The patch introduces a new optional argument (insecure) to the
keystone, glance and neutron Ansible libraries. This is a
boolean value which, when true, enables these libraries to
access Keystone endpoints 'insecurely'. When these libraries
are used in plays, the appropriate value is set automatically
as per the above conditions.

Implements: blueprint keystone-federation
Change-Id: Ia07e7e201f901042dd06a86efe5c6f6725e9ce13
2015-07-10 14:06:25 +01:00