Commit Graph

163 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
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
Lance Albertson 71b91f5553 Improve ChefSpec test speed by enabling caching
This updates all references of let(:chef_run) to cached(:chef_run) to
speed up tests. By doing this, we have to create a new cached(:chef_run)
block whenever we need to adjust node attributes for testing.

Speed was improved from 56 minutes 34 seconds to 8 minutes 43 seconds

Change-Id: Ic7cf02200cf9d09beb66f6aa0d27cadffa65f7c9
2020-01-07 16:29:16 -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
Samuel Cassiba 7c1cf9c575 starting rocky development patch
Change-Id: I8319b6d356c2233237e7308823e7899b09edf413
2018-08-03 06:40:14 -07:00
Samuel Cassiba 5058033a1a Simplify identity endpoint
Per the Keystone Install Guide[1] the admin endpoint is superseded in
favor of a single public endpoint. As a result, the admin endpoint is no
longer deployed by default.

[1] https://docs.openstack.org/keystone/queens/install/keystone-install-ubuntu.html#install-and-configure-components

Change-Id: Iafb0db54b3589eea0402c0f18687344667d0208a
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:16:41 -07:00
Samuel Cassiba 0064d8955e Remove python_runtime references
In Chef 13+, resource duplication behaves differently. By centralizing
python_runtime to openstack-common, the resource executes once in a
given Chef run, instead of attempting to reinstall python multiple
times.

Change-Id: I2e17d655c86fac63e02aaadf5321bc95e2c7aa0b
2018-04-11 22:44:34 -07:00
Zuul d828493fad Merge "Update lbaas url for Queens, logging handler" 2018-03-23 09:55:40 +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 09d7658e42 Update lbaas url for Queens, logging handler
* remove postgres references
* update lbaas url to stable/queens
* update logging handler to reflect the current state of things

Change-Id: Ie298fec4dc1ed35119ffe844f356d1c72cfaa6f8
2018-03-08 10:52:58 -08:00
Samuel Cassiba 48732d65cd Update dashboard reference to Pike branch
Change-Id: I7d9ae42be64e79ac95675a2506c4adebb643b135
Implements: blueprint modern-chef
2018-02-16 16:09:45 -08: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
Jenkins 1f3ed2d4fd Merge "Corrected Python runtime for neutron-lbaas-dashboard" 2017-09-13 14:24:05 +00:00
Samuel Cassiba 8b31c8ddf2 Corrected Python runtime for neutron-lbaas-dashboard
- poise does things in Strange Ways. it works better for package-based
  applications when it's not constrained

Change-Id: I311bccb06f8a3b89dd29a78ca259ab85cfe23d3c
2017-08-29 22:46:01 +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
Samuel Cassiba 5c5d37fe55 Style and lint fixes for the Ocata release
- Style and lint fixes to support newer chefdk
- Rewrote metadata.rb for readability
- Removed ancient Gemfile

Change-Id: I63e6680cec8b66e2ece2d2627c0b413f5d401317
2017-08-02 02:17:14 -04:00
Christoph Albers 943c3a6aeb Updated lbaasv2 remote path for Ocata Release
- now using stable/ocata branch to pull file

Change-Id: I6a656b7ecf01e026b80fc322282a2e284ea141ed
2017-07-21 15:57:03 +02:00
Samuel Cassiba 766cc54a50 Corrects SELinux enablement, lbaasv2 dashboard installation
- corrects SELinux enablement on RHEL platform families.
- switches lbaasv2 dashboard to use system Python, so that it gets
  picked up correctly.

Change-Id: I8b10381b169e8dd56c9cee990f1e3c7d3283d1b0
2017-03-06 19:52:50 -08: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 bc49cefc80 Fix dashboard settings
- Add wsgi option to vhost definition
- Remove duplicated entries in template
- Do not set Xen option when we deploy KVM

Change-Id: I3e40674cbdfa116afa46e845dbd165f0d5abc7d0
2017-01-06 13:16:25 +01:00
Jan Klare ab456b80be update cookbook dependencies for next release
* also a minor change in the specs to fit the identity v3 refactoring

Depends-On: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
Depends-On: Ic6b00a08ec29a9a7c04a72c743af5f756db45edf
Change-Id: I5a8802103373b59effd8db18502a83563c085414
2016-12-05 17:36:55 +01:00
Jenkins 8d79402261 Merge "Increment Ubuntu release to 16.04" 2016-09-29 08:52:27 +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
Samuel Cassiba 0aa839e794 Increment Ubuntu release to 16.04
This is a cosmetic change that only affects unit tests.

Change-Id: I7b4c99e3e078b3be71077a13b0daa11686976a34
Implements: blueprint newton-xenial
2016-08-10 19:34:10 -07:00
Lance Albertson 796945e658 Properly set SSL cert paths when disabling certs databag
This fixes an oversight in a previous patch when disabling the certs databag. It
would improperly not set the cert paths at all in the apache vhost config. This
fixes it and also adds an addition test that should have caught it originally.

Change-Id: I7726c949791658a750b9c382107f01e0a112247c
2016-08-02 08:54:25 -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 c96631c992 Merge "ssl_cert and ssl_key file can be one big .pem file" 2016-04-21 15:16:59 +00:00
Jan Klare f08b7c3b8d ssl_cert and ssl_key file can be one big .pem file
* added condition for the case that ssl_cert_file and ssl_key_file are shipped
  toghether in one .pem file (the .pem file should only be touched once)

Change-Id: I7d4d593249bda2701b29a4a8585f8267cb815190
2016-04-11 09:40:37 +02:00
Mark Vanderwiel 654533a79d Remove default apache port
The default apache port overlaps with horizon, but
uses a different address syntax, *:80  vs 0.0.0.0:80.
This causes apache2 to sometimes fail on startup with
Address already in use: AH00072: make_sock: could not bind to address [::]:80

Change-Id: I7aa178878a6d283c4e5e0334a8bdcba30c8f242a
2016-04-08 10:48:02 -05:00
Samuel Cassiba 08170eb356 Remove Fedora workaround for SELinux
Change-Id: Iefe0cd8037c20627d326e0922476f8499b477d77
2016-03-18 12:37:36 -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 14ce391e1b use Array for apache2 listen attributes
* the apache2 cookbook got patched recently and now uses an array of
  "ipaddress:port" to define where apache2 should listen

Change-Id: I7304932c19398c2bd245bbb7cbad6df4f487047e
2016-03-03 14:19:27 +01: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
Jenkins b3d97d1ee3 Merge "Remove the deprecated properties in horizon." 2015-07-08 01:25:32 +00:00