Commit Graph

133 Commits

Author SHA1 Message Date
Ghanshyam Mann d169cdecef Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: I8dc9f8845115a0b17d94a5910b9926d49039623a
2024-02-18 05:02:03 +00:00
Lance Albertson de8fb53dc0 CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: Ie94c860bc056349262325d2e90c513b64dbb3107
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 17:12:12 -07:00
Lance Albertson ac44b062b6 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/814051
Change-Id: I5a75b2acdfdb35dd265e2f2fe9e4035fe3f51a29
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:59:51 -07:00
Marek Szuba 1e07ff58c7 Update default Debian paths for Buster and newer
Since version 10 (Buster) the package openstack-dashboard installs its
files to different directories than it used to. With version 11
(Bullseye) just about to reach stable status, it might be time to update
the defaults - for Debian proper anyway, since judging from the contents
of relevant Ubuntu 21.04 packages that distro has decided to go their
own way here.

Note that this also changes the handling of some of the paths for RHEL
- there used to be two hard-coded paths in the recipes/horizon.rb which
still work under RHEL and Ubuntu but not under modern Debian, requiring
a switch to attribute-defined paths.

PS. The permission change on dash_state_dir is part of this too,
since without o+x Apache complains

access to /static/foo denied (filesystem path '/var/lib/openstack-dashboard/static') because search permissions are missing on a component of the path

whenever any static dashboard content is to be retrieved.

Signed-off-by: Marek Szuba <m.szuba@gsi.de>
Change-Id: I345b4894f1243db77856303d97538914dc6cf9be
2021-07-19 15:35:56 +01:00
Lance Albertson 8612724097 Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: I28467c053dec67a1a9b31d59267a61ce3b1072dc
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 23:14:59 -07:00
Lance Albertson 1ac136c63a Install openstack-neutron-lbaas-ui package on RHEL instead of from pip
RHEL finally includes a proper RPM package for the horizon LBaaS plugin in
Stein. This removes the dependency on poise.

Change-Id: If3d2729c013125bd75441c50fc7de5d5cc9c3221
2020-03-30 12:08:06 -07:00
Lance Albertson 57b9ab6138 Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Add missing ChefSpec tests
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Cleanup array syntax using %w() instead of []
- Remove FWaaS recipe as it's been unmaintained upstream.

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Depends-On: https://review.opendev.org/706151
Change-Id: Ie3b65b701235bae65a1797d63d6a55dd6fc9958e
2020-03-23 10:59:37 -07:00
Lance Albertson 4e4bed1eed Update to apache2 ~> 8.0 cookbook
This brings us up to date with the latest apache2 cookbook which
included a major refactor in 6.0.0 removing all of the definitions and
recipe with proper resources. Instead of using the apache2_default_site
resource, directly use a template and then enable the config file using
the apache2_site resource. This gives us the most flexibility.

Additional fixes:
- Remove or replace references to node['apache'] attributes
- Install mod_wsgi as a package on RHEL since there is no built-in
  resource for it.
- Don't set SELinux to permissive on RHEL (I tested this works properly
  with it set to enforcing).
- Remove hack for restarting apache.
- Convert web_app to template and subscribe to restarting apache.
- Remove resources to restore SELinux contexts since this taken care of
  by Chef now automatically.
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: Ib82595c27f03a7b456d5d5bfecc466f5ac199a5c
2020-01-30 09:30:28 -08:00
Zuul e58df346ee Merge "Use python3 packages on Ubuntu" 2019-11-25 15:52:50 +00:00
Lance Albertson b9ae8b555f Switch to using wsgi.py as wsgi/django.wsgi has been deprecated
The following is included in django.wsgi:

```
Use of this 'djano.wsgi' file has been deprecated since the Rocky
release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This
file is a legacy naming from before Django 1.4 and an importable
'wsgi.py' is now the default. This file will be removed in the T release
cycle.
```

Change-Id: Ic188e6ec87cb59d9311787fa36defd193116c2b0
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-22 17:15:31 -07:00
Jens Harbott a152f7bbca Use python3 packages on Ubuntu
Python2.7 is going EOL soon, let us deploy python3 for Rocky from the
start, so we avoid having to switch later.

Add a workaround because the apache2::mod_wsgi recipe hardcodes python2 deployment.

Install neutron-*aas-dashboard plugins as distro packages and not from pypi.

Depends-On: https://review.opendev.org/682918
Change-Id: Ia994665c69b64725e7e5369ceb93ee9608620d2b
2019-10-02 12:29:05 +00:00
Jens Harbott 48e6fd88de Updates for Rocky
- Use role "member" for keystone_default_role instead of "_member_"
- Package "openstack-dashboard-ubuntu-theme" doesn't exist anymore
- Drop attributes that aren't used anymore

Change-Id: I5c6bc5b64d65e89ef599959015865661f92ee6e3
2019-08-15 11:52:50 +00:00
Lance Albertson d44b03c2bb Remove reference to deprecated attribute
The node['openstack']['api']['auth']['version'] was deprecated and should no
longer be used. Default to version 3 for keystone since that's currently what's
supported.

Change-Id: I655e19e31f026be4fe92cbfbbf9d41f37cc6208d
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-15 22:17:39 -07:00
Jan Klare 4838ae06c7
disable the openrc v2 download panel by default
Change-Id: I568d779fb05cb7b0dd22cc1757f86ecda26b281f
2018-11-05 13:31:53 +00:00
Christoph Albers babed9fcf5 FWaaS Dashboard fix
- FWaaS Dashboard has been moved to a seperate project since Pike

Change-Id: Ic24b4a611f35ffe47c3847abd0ab164694265a00
2018-03-20 16:32:48 +01:00
Samuel Cassiba 1b4d4f8259 dashboard refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket access
- added workaround for bug #1616265
- deprecated postgresql support
- moved package_overrides to common cookbook

Implements blueprint modern-chef

Change-Id: I1e0be7d59414897adf82ac21d2430df2525a61d9
2017-12-13 07:02:15 -08:00
Christoph Albers 4cb260001f neutron-lbaas-dashboard update
- python-neutron-lbaas-dashboard version was outdated
  updated to latest stable/pike release version

Change-Id: I103e9747439841063f1a926ef9d7883287f63999
2017-09-15 14:48:35 +02:00
Jenkins 1d89b4c4a9 Merge "Fix dashboard static path for Ubuntu" 2017-09-12 13:36:20 +00:00
Jens Rosenboom 6b3af92456 Fix dashboard static path for Ubuntu
Ubuntu packaging for Ocata has changed the path for static dashboard
content.

Change-Id: I3e46584c656d5a365026b2e833967a74b5c9ed72
2017-09-11 12:05:31 +00:00
Samuel Cassiba d7773b69b6 Initial dashboard Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions
- Normalized the template banner

Change-Id: I80d825722a3218b34a5dee38b60017492e3768e0
2017-08-25 09:29:15 -04:00
Christoph Albers 7c6a8f2285 Added option to enable_vpn
due to the fact that Neutron kicked out VPNaaS from governance.
We should disable vpn out of the box but give the option to deploy it.

REL.:
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107384.html

Change-Id: Ieff504cdcd86bc31e8c3553b428968665259255f
2017-05-09 15:05:43 +02:00
Jenkins 5c505fa0e1 Merge "Multiple dashboard fixes and refactoring" 2017-02-20 17:53:21 +00:00
Christoph Albers 3548100c1b Multiple dashboard fixes and refactoring
* added recipe neutron-lbaas-dashboard to install the dashboard plugin
  according to the current docs
* removed server.rb recipe and server_type attribute since the only
  available option is apache2
* adapted specs and README accordingly

Change-Id: I4f407598acccd2d21d4204b936122963ebd4f7c8
2017-02-17 16:05:30 +01:00
Jens Rosenboom e49a768f62 Fix settings for Newton release
- The keystone_default_domain must be the ID of the domain and not its
  name.
- The comment for the CACHES setting was updated upstream.
- The FLAVOR_EXTRA_KEYS setting got deprecated, so we drop it.

Change-Id: I8930e36883b64fa823438289e26602ea243f7fe6
2017-02-09 14:24:25 +01:00
Christoph Albers a8e6c9857d Fixes for Newton / Identity v3
- added needed values to local_settings.py to work with Newton and v3
- added openstackclient to berksfile

Change-Id: I3c31b6431c3e3b6bcfd08d46195a041696ec91f8
2016-12-09 14:42:10 +00:00
Lance Albertson 5fad88d1c0 Include ServerAlias in dashboard vhost if set
There are use cases where having ServerAlias in the vhost is preferred. This
includes that option but excludes by default. It's set using an array so you can
set multiple server aliases.

I also added the virtualhost port configurator test for dashboard-http-bind on
port 80 to ensure it works on both ports.

Change-Id: I621cb2a519e92d04d60fd75e727b59250bd72e30
2016-08-13 11:51:54 -07:00
Lance Albertson 2685178b69 Make certs databag optional
This provides an attribute which allows users to optionally disable using the
internal certs databag for SSL certificates. The use case is for people who are
using other external methods (such as the certificates cookbook) to manage
certificates.

Change-Id: Ib7c578135db74675bd4c5a0da13f053f6474e0f1
2016-07-25 08:43:04 -07:00
Lance Albertson 648da86777 Add ability to use option SSL chain certificate
Some organizations use an SSL certificate which requires an intermediate chain
cert. This provides support for that via a new attribute and is optional.

Change-Id: I1b31ca64378ff8c6f5367b75b4b7b210a650d676
2016-07-21 08:31:52 -07:00
Samuel Cassiba 3d1d8039cf Style and lint fixes to support newer ChefDK
Change-Id: Idc239c737c0c1324a8756f88e9874d3e4dce3d35
2016-07-06 12:06:11 -07:00
Lance Albertson 8717d2f073 Properly set POLICY_FILES_PATH on RHEL
RHEL puts the POLICY_FILES_PATH in a different location than Debian so we need
to ensure we set it. For Ubuntu/Debian, we'll explictly set the path they
currently use. Without this set properly, horizon fails to load up on RHEL.

Change-Id: If4f75ef8a3094154b2aecf435746f7a2050d5699
Signed-off-by: Lance Albertson <lance@osuosl.org>
2016-06-16 08:46:07 -07:00
Jenkins b44adf823a Merge "Refactored get SSL Certificate method" 2016-03-07 17:50:37 +00:00
Christoph Albers f794a7ef0c Refactored get SSL Certificate method
* removed old remote_file and file method to get certs
  now uses the "secret" method from common to use data_bags
* removed now unused / obsolete attributes
* now uses new bind_address method from common
* edited specs to work with the new method

Change-Id: I296ae2241f38da51a07e52b913b86932153120e6
Depends-On: I7a4279aa6b3cbcc60a334900cd8442fd76792896
2016-03-07 10:34:25 +01:00
Christoph Albers 885775f8c8 Added Attribute for enabling lbaas
* added enable_lb attribute to local_settings.py
* added specs to check the attribute is rendered probably

Change-Id: Icf11d684af41b297b0fdb4995c7b92576abf4a7b
2016-03-04 09:13:20 +00:00
Jan Klare 75e51698ad WIP first few fixes to work with refactored cookbooks
* removed fedora and suse support
* added os-identity dependency
* added versionbumb for refactored os-identity and common
* moved version up to 13.0.0 for mitaka release

Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Change-Id: Ida408a025f1a3e6a632108a9a32877026e286116
2016-02-08 11:53:22 +01:00
JJ Asghar 0c8ae1d0b9 Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

rubocop updates
remove db2 refs

Change-Id: I5ff8ca0939f13e583f8d4ff75ff91a4805e78381
2015-08-28 23:17:25 -05:00
Hong Hui Xiao a472b6713e Remove the deprecated properties in horizon.
Horizon will show the neutron advanced services depending on if
these services are enabled. The former properties enable_lb,
enable_vpn, and enable_firewall will be deprecated since Kilo.
Remove them from cookbook.

Change-Id: I3f2a77956381b8e8cc0a897ad79395063e246855
Closes-Bug: #1459576
2015-06-29 11:54:33 -05:00
Mark Vanderwiel 13cb93ff88 Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: I17b4f23f6e7cb71e84c74996a98d04f3782be479
2015-05-28 17:05:31 -05:00
Mark Vanderwiel 7ccbfe76a6 Allow ssl ciphers to be optionally configured for horizon
Add the SSLCipherSuite to the dash-site template.

Change-Id: I7b87761dd1ab0618e6ae6de428ec0b736e4aa483
Closes-Bug: #1447668
2015-04-23 10:44:01 -05:00
Mark Vanderwiel 9a68087e76 Prevent html page caching by default
Caching html pages could be a security vulnerability, so
by default prevent this from happening.
For now just a simple on/off switch, if more flexibility is needed
here it can be added later.

Change-Id: Iccf65edee23d55b016201b643c0d187d04ff3c13
Closes-Bug: #1446701
2015-04-23 01:45:16 +00:00
Mark Vanderwiel 40b59919d6 Use new bind endpoints for dashboard
Use the new http and https bind endpoints for dashboard that are
defined in the Common cookbook.  These will allow more control and
consistency with the other bind endpoints for openstack services.

Change-Id: I15c0c2c40a88e18ff9805d48c4da83890b7f4da7
Partial-Bug: #1430422
2015-04-03 10:18:46 -05:00
Mark Vanderwiel 9eed38ca50 Change the default for password_autocomplete to off
For better default security, change the default to off
for password autocomplete.  Base openstack horizon is also
making this change soon.

Change-Id: Ie46dd5b5e5d65dd4bfa298a4c2d571cf13b94812
Closes-Bug: #1420863
2015-02-16 09:48:05 -06:00
Mark Vanderwiel 7c2869bab2 Trusty juno updates
* update spec platform versions
* remove old 12.04 logic

Change-Id: Iecc8a1b126924b27d54e4224fe8f2562c32b1e5d
Implements: blueprint trusty-juno
2015-02-02 16:53:12 -06:00
Jan Klare 8642691b07 Move to cookbook apache2 ~> 3.0
* added the needed stubs for including the new apache2 cookbooks
* added '.conf' for all sites-path since apache_site method looks for
  this now
* pinned apache2 to '~> 3.0'

Change-Id: I54fae7a162a1932c3851d8104c1c8e433016c1d0
2014-12-01 15:42:09 +01:00
Jens Rosenboom 97404520bc Split the dashboard and webserver recipes
In order to be able to use alternative webservers, split the parts
relating to setting up the dashboard itself and setting up the webserver
into two new recipes.

Also introduce a new configuration variable, defaulting to `apache2`,
which will be used in the `server` recipe to select the type of
webserver being installed.

Change-Id: I70dcb820239547b0059ad15d19d5e1689ddff3d3
blueprint: dashboard-split-horizon-apache
2014-11-18 20:55:48 +01:00
ZHU ZHU a142662fbd Add volume_api_version for dashboard configurations
For Horizon localsetting, it can configure to use which version of cinder api.
Now the cookbook is switching to adopt cinder v2 api, we need to have horizon
cookbook support cinder v2 as well.

Change-Id: I2ab95c9f55cadd37d26c1d0af0dbd64cd8fc8e2c
2014-11-15 03:42:47 -06:00
Mark Vanderwiel e3b14df8a2 Allow TraceEnable to be configurable
Change-Id: I4e6c486b9af8f72080c5d47310615f7f9fef744b
Closes-Bug: #1319319
2014-10-23 14:51:58 -05:00
Mark Vanderwiel f2f6bf0a36 OSSN-0039 Prevent POODLE attacks
Allow SSL protocol attribute, default to only TLS.

Change-Id: I58758e99ea1256aeefff27d441b0a527169829b5
Closes-Bug: #1384438
2014-10-22 15:24:03 -05:00
Alan Meadows 2859570b81 Allow file_upload_temp_dir override
This adds the ability to overide the
file_upload_temp_dir setting in django
which is usually '/tmp' by default but
may not be appropriate for all installations

Change-Id: Idebae5e0ec2249868f5ce411a7f798a7584fa40a
2014-10-13 14:25:37 -05:00
YangLei 514081ef0b Config OPENSTACK_TOKEN_HASH_ALGORITHM
Allow OPENSTACK_TOKEN_HASH_ALGORITHM to be configurable

Closes-Bug: #1372717
Change-Id: Ifd26bfeff7dab70c30ad4cbb1007ec697e79017d
2014-09-27 11:22:26 +08:00
YangLei 614103b253 Config the some certificate options
Allow the following options to be configured
OPENSTACK_SSL_NO_VERIFY
OPENSTACK_SSL_CACERT

Closes-Bug: #1372723

Change-Id: Ic4a612a899753198d1c09f5b5b78ca94d920d687
2014-09-23 15:36:34 +08:00