Commit Graph

535 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
Zuul 76c11c6cfe Merge "Update default Debian paths for Buster and newer" 2021-07-19 17:36:59 +00: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
Ghanshyam Mann 90367ef825 Moving IRC network reference to OFTC
Also pull bind cookbook from git to fix version pinning issues.

Change-Id: Ia90e7cc967a8ac300a3dec984f6e89b3feb122b3
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-15 11:09:55 -07:00
Lance Albertson 89a99bc955 Update to Chef Workstation 21.2.303
Change-Id: Iacee81467d2d99408eb5ed83b9ec8cfa1f964f25
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:25:03 -08: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 91c88364b2 Chef 16 updates
Depends-On: https://review.opendev.org/747556
Change-Id: Ia1d62b3d9e8843956831faa30436e2fdc6992c8d
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:45:50 -07:00
Lance Albertson 2c761a06b6 Updates for Train
Changed:
- Update release to train
- Update to apache2 ~> 8.1

Removed:
- Unused rubocop rules

Change-Id: I8aa404752480497b139f6a9eba961c926071f409
Depends-On: https://review.opendev.org/731859
2020-05-29 21:41:50 -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
Lance Albertson d7f36ea0ac Updates for rocky
- Replace git.openstack.org with opendev.org
- Update some documentation
- Move README.md to README.rst for better rendering
- Drop obsolete bootstrap.sh script
- Drop obsolete openstack-identity::default recipe

Change-Id: If98eef94a31bd0f082a869dc2278d21abcf47b59
2019-12-09 05:40:15 +00: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
zhouguowei 8f5ef483b9 Update and replace http with https for doc links
Amend the mailing list name and remove the twitter handle.

Change-Id: I8cdb2f6ab0d3b3dabd6848400b3c0373daecb302
2019-09-02 11:16:24 +00:00
Jens Harbott c58f51a284 Update group for dashboard site template
The other apache2 site config files that are created via the ``web_app``
resource from the apache cookbook use a node attribute to determine the
the unix group that the template should belong to. Use the same
attribute in our local template so that all ownerships are consistent.

Change-Id: I4933f9dd5293b30c5b2597055debc2c9c659aca2
2019-08-20 11:02:41 +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
OpenDev Sysadmins 9cfbfda022 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:39:21 +00:00
Zuul d42a397111 Merge "Pin apache2 cookbook to 5.0.1" 2018-12-11 13:53:11 +00:00
Samuel Cassiba 7681f14a38 Pin apache2 cookbook to 5.0.1
This change eliminates a kitchen failure with apache2-5.2.1

Change-Id: I545857affd00d8b3c33e2820782c6440cac5e118
2018-12-10 21:14:56 -08:00
ZhijunWei 587880820a Change openstack-dev to openstack-discuss
Change-Id: Ic60f38ef2994f03d283292af491be9438ddd6a95
2018-12-04 23:21:02 -05:00
MaoyangLiu 99b3a3426d fix the misspelling world
Change-Id: I1ecd63e8573682388f9349b44a5d60654dc75d29
2018-11-24 14:41:21 +08:00
Jan Klare 4838ae06c7
disable the openrc v2 download panel by default
Change-Id: I568d779fb05cb7b0dd22cc1757f86ecda26b281f
2018-11-05 13:31:53 +00:00
Samuel Cassiba d4779ba7cd Rename openstack-chef-repo references to openstack-chef
Change-Id: I6bd8a240ef7ac4086636c998a74cb319db449561
2018-08-06 21:49:30 -07:00
Samuel Cassiba 7c1cf9c575 starting rocky development patch
Change-Id: I8319b6d356c2233237e7308823e7899b09edf413
2018-08-03 06:40:14 -07:00
Samuel Cassiba 1852e73c10 Use internal identity endpoint for services
Depends-On: Id74966d9f1279f725bc41c08e434230a7845bbc1
Change-Id: I13570720f499220685415735be531a4d9b693ab8
2018-07-16 12:40:39 -07:00
Zuul ca1e49141d Merge "Simplify identity endpoint" 2018-06-28 14:43:27 +00: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
XiaojueGuan 0d7f352a26 Update links in README
Change the outdated links to the latest links in README

Change-Id: Ia4cd7e663ff13d7341a6285eba629e05520bdf5b
2018-06-12 15:16:31 +08:00
Zuul 3abd92ed25 Merge "Remove python_runtime references" 2018-04-16 14:42:42 +00: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
Samuel Cassiba 9ffd1eba4c Add delivery config
Change-Id: Ifd0a9afe9d6ac3965abf233a66f8288aeac8b552
Implements: blueprint deprecate-rakefiles
2018-04-11 22:22:16 -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 7158b2c63e starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Depends-On: https://review.openstack.org/549345
Change-Id: I8e129e0716b647422773949711acefc5c2df5b48
2018-03-06 12:24:02 -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
James E. Blair 10e422f3ef Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I2909f09759e58817848d76f7545ac5a3df8bbdd2
2018-02-01 08:59:17 -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
Jens Harbott 5bfcedf378 Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: I55b62eeb5fe0a9b1be0332d7cc78290ee1c5eee1
2017-11-02 10:34:26 +00:00
Jenkins 4b364711f1 Merge "local_settings.py fixes" 2017-09-26 15:54:05 +00:00
Christoph Albers d079f432fd local_settings.py fixes
- there was a bug in the 'misc-section'
  when value is a boolean it would've been printed in ticks.
  In Python boolean is treated as Reference, this means it is
  written uppercase

Change-Id: Idc03f2bd1f7ee519e404e5a30711a81493acf522
2017-09-19 15:37:04 +02: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 1f3ed2d4fd Merge "Corrected Python runtime for neutron-lbaas-dashboard" 2017-09-13 14:24:05 +00:00
Jenkins 1d89b4c4a9 Merge "Fix dashboard static path for Ubuntu" 2017-09-12 13:36:20 +00:00