Commit Graph

146 Commits

Author SHA1 Message Date
Ghanshyam Mann 7372103182 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: I4561c6eefef05c672a4f6cb9d15b1a5a29e81110
2024-02-18 05:01:47 +00:00
Lance Albertson dd5a46c6dd CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Don't add --listen to libvirtd on EL8
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/815148
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-network/+/815172
Change-Id: I2e66b923b91d763ea7f484421dbdad883d9117a3
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:34:14 -07:00
Lance Albertson 3e101784a9 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/814052
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-network/+/814057
Change-Id: I84867a131b54d63f3d057c40a1e8ac4b4697c368
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:45:38 -07:00
Lance Albertson 6c69ce58b1 Updates for Train
The major change in this release is that the placement-api code base has been
removed from nova and put into it's own project called placement [1]. Users who
are coming from Stein will need to follow the upgrade guide [2] to properly
upgrade to the new service.

All attributes related to placement-api have been moved into their own files
including configuration file attributes for placement.conf.

Added:
- Template to manage /etc/placement/placement.conf
- Include openstack-compute::_nova_cell recipe to nova-setup so that the db
  migrations happen properly

Changed:
- Update release to train
- Migrated from nova-placement-api to placement-api [1]

Fixed:
- Cookstyle & ChefSpec
- Ordering of db syncs which was causing issues for Train
- Set default['openstack']['compute']['syslog']['use'] to false by default
- Various comments

Removed:
- Removed references to nova-consoleauth which has been removed upstream [3]
- Removed references to xvpvnc which was removed upstream
- Unused .rubocop.yml and .rubocop_todo.yml

[1] https://docs.openstack.org/releasenotes/placement/train.html
[2] https://docs.openstack.org/placement/latest/admin/upgrade-to-stein.html
[3] https://docs.openstack.org/releasenotes/nova/train.html#prelude

Change-Id: I996bcd2f63a080e10fadf0c7adf9a0ddcb0b5c7a
Depends-On: https://review.opendev.org/731859
Depends-On: https://review.opendev.org/731860
Depends-On: https://review.opendev.org/731861
2020-06-09 10:09:15 -07:00
Lance Albertson 2961ebabee Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/nova/nova.conf] to
  resources improve security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- 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 []
- Add metadata to enabled_apis as that is the default upstream
- Switch to user resource for managing shell for nova user
- Switch to libvirtd instead of libvirt-bin for Ubuntu service name

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706151
Depends-On: https://review.opendev.org/708059
Depends-On: https://review.opendev.org/706157
Change-Id: I7e03fb9dace6e288a3b21f33106245b30b52ce9d
2020-03-19 12:36:40 -07:00
Lance Albertson 868900d090 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:
- 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.
- Fix resource ordering in placement_api
- Improve ChefSpec tests
- Add missing placement_api RHEL tests
- Fix issues with chain file and cipher suite in in wsgi template
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: Ib404ab6bfcae3340fd7f0f924539ca6c445b55cf
2020-01-30 11:22:19 -08:00
Lance Albertson baa1464918 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

Change-Id: I0fd381bceadcd43a258e04b2cbea8a1a3785dd1b
2019-12-06 11:14:20 -08:00
ZhijunWei 20fb9a2311 Change openstack-dev to openstack-discuss
Change-Id: I0230fe1fe85b25660bee9e6b728062f7b984f25c
2018-12-04 23:21:02 -05:00
Samuel Cassiba f922173a34 starting rocky development patch
Change-Id: Ic08b45c18b8593c7302dc0977158b8d4e9d58b5a
2018-08-03 23:01:12 -07:00
Jan Klare 2434b03f7d
remove all ceph related attributes,recipes,specs and the cookbook dependency
Change-Id: I24f9976ed57a90cb7062ed990e758fd9707d04b4
2018-04-05 16:38:31 +02:00
Samuel Cassiba 0bef2dc3fc 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
Depends-On: https://review.openstack.org/549346
Depends-On: https://review.openstack.org/549348
Change-Id: Ie18c080e001070bb081e30ec0633f3c25a5f2b55
2018-03-06 12:16:08 -08:00
Samuel Cassiba 859fc5df20 compute refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket access
- parameterize run directory for apache2

Implements blueprint modern-chef

Change-Id: I6cf4cd67a96c7d353c4871db02be42ebdc9c1528
2017-12-10 20:02:43 -08:00
Jan Klare a0bc7dc26a
starting pike development patch
Change-Id: Ied06f039a076edaa64f010433fe0ab98633ae861
2017-08-17 14:19:01 +02:00
Samuel Cassiba 012902ad92 Added cellv2 support
- Added basic cellv2 recipe, as it is required from Ocata on
- Style and lint fixes to support newer chefdk
- Rewrote metadata.rb for readability
- Removed ancient Gemfile

Change-Id: I97b453fc419bfbf01679dadf39a256b1f0f99859
2017-08-10 17:35:07 -04:00
Jan Klare 206df1c452 starting ocata development patch
Change-Id: I538ad27df8d415a591146ee50972621837ab2be8
2017-02-23 17:06:05 +01:00
Jens Rosenboom ced5be5512 Remove docker-setup receipe
The docker-setup receive has been unmaintained and untested for some
time now. The nova-docker project is also being removed from
OpenStack [1] and people are advised to look at deploying Zun as
a replacement.

This also avoids having to rewrite this receipe in order to remove the
use of the deprecated python cookbook.

[1] https://review.openstack.org/430232

Change-Id: Ia8c9db272c6a0353130fc93d446b385fd72ac250
Partial-Bug: 1558538
2017-02-09 15:06:49 +01:00
Jan Klare f68e049118 update cookbook dependencies for next release
Depends-On: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
Depends-On: Ic6b00a08ec29a9a7c04a72c743af5f756db45edf
Change-Id: Ib4b3b9b30487b9fcb6438b4f88d3642916f52208
2016-12-07 10:55:07 +01:00
Christoph Albers e0441b5322 use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- added needed keystone_authtoken attributes + neutron
- updated readme

Change-Id: I84f850f32f25a318c3ed3c7337a0dfa6f641a5fe
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: I2d404a424bd79a6e9b282304e21591fa33a48981
Depends-On: If7b4d6e563081a0be9957353d73ef61a9688df56
2016-09-30 11:37:41 +02:00
Samuel Cassiba c6c3537242 Style and lint fixes to support newer ChefDK
Change-Id: If87a38d33de73da45648fabf127e3b127fa46045
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
Depends-On: I0a3872cd3a21c31b5e3a7b6190f911280e9ed909
Depends-On: I34e4c7b29ff7c36c91245d90fb0b6897847cd22f
Depends-On: Ie45076f0ee36e880c9a6080f2b330982e40c282c
2016-07-06 12:55:03 -07:00
Jan Klare 64c25ea5fc initial commit for the newton development cycle
Change-Id: Iedc63af610d655b1d390890f466159ef77a17da9
2016-05-31 10:21:17 +02:00
Jan Klare 97497a1d00 update the README after refactoring and align it with other cookbooks
* also removed the empty default recipe

Change-Id: Id6e3750f9ae78178ecf4e4370ac6b6b3dbc599c6
2016-04-28 15:01:33 -05:00
Samuel Cassiba 749f4ccfd3 Remove api-ec2 recipe
api-ec2 is being replaced by the `openstack-ec2` cookbook.

Change-Id: I5b4bc088bbf9a5061ed311d164dc381a3caca2d5
Depends-On: I2dbbafaf8641ece00d4181d1ea4ba93f00eed6ed
2016-03-18 08:04:29 -07:00
Christoph Albers 799029519b refactoring final step
* added endpoint attributes (moved from common)
* removed qpid as a messaging option (can be incuded in a wrapper)
* removed os-bare-metal dependencies
* deleted default attributes from nova.conf.rb originated in
  openstack-common
* removed fedora and suse as supported platform
* adapted optimized endpoint logic
* removed rubocop exceptions in recipes and regenerated the
  .rubocop_todo.yaml containing all remaining exceptions
* added versionbumb for refactored os-identity and common
* moved version up to 13.0.0 for mitaka release
* adapted the specs (unit tests) to work again
* refactored spec_helper.rb method "expect_creates_api_paste"
* added new logic into templates/default/nova.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the nova.conf.erb template to adapt the new
  template attribute syntax
* moved all attributes from attributes/default.rb that were used in
  nova_conf.erb to attributes/nova_conf.rb
* refactored attributes to fit upcomming template logic
* refactored recipes/nova_common.rb to fit upcomming template logic
* removed all attributes from default.rb and nova.conf.erb which are set
  as default in attributes, openstack doc and used to render the template
* removed nova-network as a supported config option

Depends-On: I9cc1b5cc069987ac83e064322c2291772505ff5f
Depends-On: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: I9ac9eeb29ab27f31394830e4b6f999d5870cc0e4
2016-02-08 12:05:12 +01:00
Mark Vanderwiel 4cf66d2beb update ceph cookbook to allow update of apt cookbook in other cookbooks
Change-Id: Iac30fcbd7ce1abe0bd0acf0a730d96b1c6a217a4
2015-09-18 15:20:28 -05:00
JJ Asghar 9ce1d8ef27 Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

Attributes changes
- Changed some comments for liberty

rubocop updates
remove db2 refs

Change-Id: Ic318239294fa32173634c68710fb93e1b09d3e42
2015-08-31 12:02:01 -05:00
Zhe Jiang 139dfc8375 Add recipe for serial console proxy
This recipe is used to setup nova-serialproxy service.

Closes-bug: #1472152

Change-Id: I044bb6d65dad849fdc0612e197c5e33b26ddddd0
2015-07-16 11:18:01 +08:00
Mark Vanderwiel 2efe3277a1 Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: I93e9f43fa296bbdfe37e5fe9e72feaf6a3fea6f6
Partial-Bug: #1467662
2015-06-22 15:51:01 -05:00
Mark Vanderwiel 0a59088d43 Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I94465c970041f54357771af090a2a4cb9e0f0ae3
Partial-Bug: 1464706
2015-06-16 11:08:06 -05:00
Mark Vanderwiel 27207cd30b 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: Ic874a3e0a8d005e410baa40584f0f00dfc805a56
2015-05-28 16:09:12 -05:00
Jenkins 70bb381071 Merge "Update selinux to include ubuntu support" 2015-03-16 15:56:55 +00:00
Yi Ming Yin 9de621efbd Update selinux to include ubuntu support
This is a follow up change regarding the discussion in
https://review.openstack.org/#/c/161991/

Change-Id: I6ffaf2dbecbe2c154de02760d100052f40692e4f
2015-03-14 15:32:34 +08:00
Mark Vanderwiel 6f6f508e78 Fix version constraint in metadata
dont use the optomistic version constraint for base cookbooks.

Change-Id: Ie413a43c58b9d36a610614e73a3dd8a3aa0114cc
Partial-Bug: #1430808
2015-03-11 08:45:09 -05:00
wenchma 33fca8c176 Add ironic section to openstack compute service
Add ironic section configuration to make openstack compute service
use openstack bare metal service.

blueprint bare-metal-enablement

Change-Id: I7492edac417609a0eb952f0ca0780876ef8564fc
2015-03-06 12:04:06 +08:00
Mark Vanderwiel e12c8a9a85 Initial kilo updates
Change-Id: I385fb3e522b1080835c3feadfc1699cc7bf08db8
Partial-Bug: #1426424
2015-02-27 14:40:17 -06:00
Mark Vanderwiel 631f097acf Add compute metadata api to common endpoints
Nova metadata api endpoint was missing from common endpoints.
This patch will be follow by one for compute and network to
make use of these new endpoint.

Change-Id: I1c3bfe3dac4b04c7f482f698523327ce4754e594
Partial-Bug: #1425633
2015-02-25 15:18:38 -06:00
Mark Vanderwiel 9f53373413 Switch back to pessimistic version constraint
Change-Id: Ib7111508747a0239e91dba0f1e07c7a5bfd0ff8e
Partial-Bug: #1425192
2015-02-24 13:54:38 -06:00
Mark Vanderwiel f22f642574 Ceph should come from supermarket
ceph 0.8.0 was tagged in supermarket, cleanup to use normal
supermarket berks path.

Change-Id: I40e91646bf07a542c3d1b02f1bf6780c96bc0fe4
2015-02-19 11:03:29 -06:00
Mark Vanderwiel a1e8f640ad Put ceph version constraints on one line
Change-Id: Ie860eadf3c288980fd97f8e48fcccb3df1ca123d
2015-02-16 12:30:10 -06:00
Mark Vanderwiel c702cc41a0 Missed bumping Common version
Change-Id: Id2742ca615a9d82fdf129a92f97e65a6af849b5a
Related-Bug: #1412919
2015-02-09 11:37:23 -06:00
Elliott Davis 557afe0989 Add dependency on upstream ceph cookbook for better key management
The upstream ceph cookbook already hooks into chef for environment information.
This patch utilizes the client LWRP to create or add ceph keys for RBD support.
This patch also changes some default attribute names for more sane organization

Partial-Bug: #1409943

Change-Id: Ia87e123ae2d88e3122b8d66d8ff144a804e6d8c4
2015-02-02 11:16:16 -06:00
Mark Vanderwiel 949d1d1ef7 Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix file modes
* Fix broken link in Testing.md
* Readme tweaks

Change-Id: I5305591b22d650855aa9fbbf999a41c6d7b691a0
Partial-Bug: #1342735
2014-10-14 09:45:11 -05:00
Mark Vanderwiel a80dc09214 Separate endpoints for vncserver_listen and vncserver_proxyclient_address
* A patch for Common added a new endpoint for vnc proxy
* Use the new vnc proxy endpoint for the nova.conf

Change-Id: I9909e3dd500d9fcc31133b81c93420b629ed4e37
Closes-Bug: #1367807
2014-10-09 12:48:54 -05:00
galstrom21 83facf36a6 Setting up repo for master Juno Branch
* Update metadata version
* Removing Strainer file
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)

Change-Id: I5eb3a68694647617a970e7960d56b2f59c2f53e1
Partial-Bug: 1349865
2014-07-29 11:33:14 -05:00
ericzhou 46c30ed4d1 Move auth config from api-paste.ini to nova.conf.
In Icehouse, the configurations for keystone auth token has been moved
to nova.conf. So we need to remove the configurations from api-paste.ini
and move them to nova.conf.

Change-Id: I5b5b32b16c8e9235103bd61f3c3eb1774b093e0a
Closes-Bug: #1342002
2014-07-15 16:31:24 +08:00
Ionuț Arțăriși 2369a3ea5c use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: I952372ec06cc6560b9a942bfc100d12622152ab2
Implements: blueprint move-python-db-client-attrs-to-common
2014-06-27 11:29:43 +02:00
Mark Vanderwiel a5bc9a48de Allow flat_injected and use_ipv6 overrides
These are useful when trying to use config_drive

Change-Id: Ib7a554327a68c5a967c021835156d92d33c3b7fd
Closes-Bug: #1329035
2014-06-26 09:32:25 -05:00
Mark Vanderwiel 3cbc281f77 Allow live migration attributes
Change-Id: I435200916b006af9146b8b2790fd167ad4d50fee
Closes-Bug: #1286582
2014-06-25 10:53:50 -05:00
gengjh 2c7ccf22a7 Allow inject_partition to have attribute overrides
* Add new libvirt_inject_partition attribute
* Add new testcases.

Closes-Bug: #1328959
Change-Id: I836ed057449583523b8bc21c001f979669b6cef8
2014-06-19 12:58:53 +08:00
gengjh e272bcd86d Remove the storage_availability_zone settings
* Remove the storage_availability_zone from nova.conf.
* Add some testcases.

Closes-Bug: #1326248
Change-Id: I2887c6fba8a904f46e5f0bd9a8faf9da7ff077ca
2014-06-18 09:25:33 +08:00
terryyao 1bae624eae Add resize_confirm_window configuration option
Add resize_confirm_window configuration option to nova.conf.erb

Closes-Bug: #1328522
Change-Id: I9839c7629bb58489468fd98032abcb76a87725f7
2014-06-16 11:24:41 +08:00