Commit Graph

52 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 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 af47ea6ef5 Cookstyle 6.19.5 fixes
Update ChefSpec due to changes made in apache2 cookbook.

Depends-On: https://review.opendev.org/756168
Change-Id: I3ec792c519650b2d95a976ad50419a9b417a3514
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:26:51 -07:00
Lance Albertson d645ef3f5e Chef 16 fixes
Depends-On: https://review.opendev.org/747602
Depends-On: https://review.opendev.org/747557
Change-Id: I73514e34628dbf61a35f6e0ad19191cdeb2b6451
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:36:20 -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
Samuel Cassiba f922173a34 starting rocky development patch
Change-Id: Ic08b45c18b8593c7302dc0977158b8d4e9d58b5a
2018-08-03 23:01:12 -07:00
Jens Harbott ad3d1c3c65 Refactor libvirtd.conf creation
Replace the hardcoded bloated template with a variant of our standard
template that only includes the values that are really needed.

This will allow deployments to override the default values and for
example deploy libvirtd with TLS authentication according to [0].

[0] https://wiki.openstack.org/wiki/OSSN/OSSN-0007

Change-Id: Ib7b305670f525bbf975ec33ed070e2d960347ef4
2018-04-23 12:35:19 +00:00
Jan Klare 8ed820e319
fix libvirtd service naming and env file for debian
Change-Id: I6a69e3ad43936d032ac252d8a6c9a1d2bc78bfbd
2018-04-16 15:14:02 +02:00
Samuel Cassiba cbe2ef6647 Initial compute Pike updates
- Switched the default linter to cookstyle
- Deprecated config settings for Pike
- Normalized template comment

Depends-On: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b
Change-Id: I7abd4194bb7f322764309cad514040c1f5feca00
2017-09-25 16:57:08 +00: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
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
Jens Rosenboom 04273acff7 No longer need to disable libvirt default network
Starting with the libvirt packages, the default network is no longer
persistent, so trying to disable autostart for it fails. Destroying the
network will still work without that.

Change-Id: Ie9f95d161708cbe8a1d7af2a4518b8c82f491592
2015-09-24 11:07:10 +02: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
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
Mark Vanderwiel e8189f2fe9 Allow packages to be updatable
In order for package updates to occur, package resources need to use
the upgrade action.  This is first phase of blueprint, to get some
consistency, next phase is to allow some update control.

Change-Id: I91d6a47c3b5787df65f78e3e86941de1fb28583d
Implements: blueprint allow-package-updates
2014-05-07 09:53:44 -05:00
Luis A. Garcia 0ec21dfb29 Use platform_family instead of platform
As agreed on the mailing list:
https://groups.google.com/forum/#!topic/opscode-chef-openstack/HEL3KqBQIUM

This will allow the ibm_powerkvm platform to be recognized.

Change-Id: Iebf2aad9f3b4649fb5c27d2fc93ee60c67e42737
Partially-Implements: blueprint add-ibm-powerkvm-enablement
Implements: blueprint platform-family
2014-04-08 12:31:58 -07:00
Stephan Renatus c12190f1ec Define cephx libvirt secret for rbd volumes
This commit addresses the fact that any compute-worker needs to be

- prepared to talk to the ceph cluster (ceph.conf and ceph-common)
- a secret has to be defined.

The secret is identified by the UUID (known to cinder), as defined by a
databag item (of the "secrets" data bag) with a configurable name.

The actual key is taken from another databag item.  The username is
configured via the `rbd_user`.

The chefspec test on the proper content of the generated temporary xml
file is commented out since it won't work this way: the chefspec chef
run will have deleted the (in-memory representation of the) file when it
validates the spec, hence it's empty and the test fails.  (Not sure how
to fix that test.)

Implements: blueprint rbd-for-block-storage

Change-Id: I9eecc622b4d00c65fecfde0626f574be2b9ee934
2014-02-19 10:32:12 +01:00
Andy McCrae be675315ec Update recipes to be rubocop compliant
- Adjust .rubocop.yml to include recipes/**
- Ensure all recipes are rubocop compliant

Change-Id: I7ecb3896b5a2b2d93304014a4ab19cb0e3c2e31c
Addresses: blueprint rubocop-for-compute
2014-01-29 12:51:12 +00:00
Ionuț Arțăriși 0b776d3147 fix NoMethodError in ShellOut run_command
Traceback:

================================================================================
Recipe Compile Error in /root/chef-solo/cookbooks-2/openstack-compute/recipes/compute.rb
================================================================================

NoMethodError
-------------
undefined method `error' for #<Mixlib::ShellOut:0x0000000340f878>

Cookbook Trace:
---------------
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:62:in `set_grub2_default_
kernel'
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:75:in `set_boot_kernel_an
d_trigger_reboot'
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:102:in `from_file'
  /root/chef-solo/cookbooks-2/openstack-compute/recipes/compute.rb:78:in `from_file'

Relevant File Content:
----------------------
/root/chef-solo/cookbooks-2/openstack-compute/recipes/libvirt.rb:

 55:      ::Chef::Log.info("Changed grub default to #{default_boot}")
 56:      Mixlib::ShellOut.new("sed -i -e \"s;^default.*;default #{default_boot};\" /boot/gr
ub/menu.lst").run_command
 57:    end
 58:  end
 59:
 60:  def set_grub2_default_kernel(flavor='default')
 61:    boot_entry = "'openSUSE GNU/Linux, with Xen hypervisor'"
 62>>   if Mixlib::ShellOut.new("grub2-set-default #{boot_entry}").error
 63:      ::Chef::Application.fatal!(
 64:        "Unable to change grub2 default to #{boot_entry}")
 65:    else
 66:      ::Chef::Log.info("Changed grub2 default to #{boot_entry}")
 67:    end
 68:  end
 69:
 70:  def set_boot_kernel_and_trigger_reboot(flavor='default')
 71:    # only default and xen flavor is supported by this helper right now

Change-Id: If4b3426bd1b989a94bcdf9d6b221fdb0c1b8da91
2014-01-07 15:36:41 +01:00
Ionuț Arțăriși ae9dafb73b Upgrade development dependencies
berkshelf ~> 2.0.10
chefspec ~> 3.0.2
foodcritic ~> 3.0.3

Change-Id: Ifafd78188eeb4f62d55389a4b0456a05c442dc6c
2013-12-18 02:13:03 -05:00
jiehua jin 3274d27857 add dbus_service name for different platforms
on redhat6.4/centos, the dbus_service name is
messagebus, and on other platforms, it's dbus.
So I enhanced it, and updated the CHANGELOG.md
and metadata.rb .

Change-Id: I5548acc38b5e2cbf5e1d5d482cadbd876392daa4
Closes-Bug: #1244574
2013-11-01 05:21:00 +00:00
Sascha Peilicke f26076574e Add grub2 support
Change-Id: I30dda8e5f503b353e103d50242b51f247788076a
2013-06-06 11:37:11 +02:00
Sascha Peilicke 576ac98a30 Bring back support for xen,lxc and qemu
The packages to install are now attributes.

Change-Id: I84ce8ba5960bfaf93b9b239631499e9f6ba56aae
2013-06-04 17:17:44 +02:00
Ionuț Arțăriși 1a767cd4ea manage libvirt group using the chef group resource
also rename the libvirt group attribute name

Change-Id: Ie4304e6c26dafa3a1101c1ff8f90d0236f80914a
2013-05-23 18:45:34 +02:00
tpaszkowski be4bedc723 libvirt unix_socket_group attribute
- libvirtd.conf template now suports unix_socket_group defined in
  a attribiutes.
- openstack-nova user shuld be member of libvirt group to be able to read
  from libvirt unix_socket. Implemented group resource in libvirt recipie.

Change-Id: I88370f2d7fd5147f3bb46a1411295868a8ea12ce
2013-05-23 18:44:10 +02:00
Matt Ray 80f36cf59c Move attributes to [openstack][compute] namespace.
As we have decided to move all cookbooks to use the
[openstack][<service>] attribute namespace convention, move compute
to fit this model.

Change-Id: Ibc19fd5326af0340ea1e3788aa7d2701e187f3a0
2013-05-23 00:22:14 -04:00
Jenkins 7525ff0431 Merge "add suse as supported and fix users and package names" 2013-05-19 16:47:33 +00:00
Craig Tracey ab49072ea9 More changes to rename this to openstack-compute
In the previous commit, the vast majority of the work to move this
repo to openstack-compute was completed. Functionally it works. This
change is intended to address some cosmetic issues and make it
consistent with work done in other cookbook repos.

All tests pass.

Change-Id: I58216cd87b9ff0a77c599c7b5aab132ab2a9304d
2013-05-18 09:36:02 -04:00
Ionuț Arțăriși bc3adb98a5 add suse as supported and fix users and package names
Change-Id: I2cc7e96f2fd8e252bccb83505ccd701698d203fb
2013-05-17 15:37:20 +02:00
Ionuț Arțăriși d5fa9d330f only disable network autostart if the network exists
Change-Id: I4d8c813d50b4294827105fc9e2940fdd53e960db
2013-05-17 15:34:12 +02:00
John Dewey a1acd590a0 Changed cookbook name to openstack-compute
Changed the cookbook name to openstack-compute, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: Ic567a33cefd78cc3b2217986d3ff7475bc93f874
2013-05-16 17:59:06 -07:00
John Dewey 4b9f6944c3 Updated per jay's comments 2013-05-06 11:32:41 -07:00
John Dewey a98e4abf77 Added libvirt and nova-network tests
* Added rhel platform tests and default (ubuntu) tests for libvirt.
* Added rhel platform tests and default (ubuntu) tests for nova-network.
* Found and cleaned up a few misnamed tests.
2013-05-04 15:17:42 -07:00
John Dewey 96e0d0109b Re-Revert "Revert "Foodcritic cleanups""
This reverts commit 681aa57270.

Corrected the notification syntax
2013-01-07 17:40:53 -08:00
Jay Pipes 681aa57270 Revert "Foodcritic cleanups"
This reverts commit e59e131ad8.
2013-01-07 11:19:53 -05:00
John Dewey e59e131ad8 Foodcritic cleanups
Think I got em all right, esp the subscribes...

FC033: Missing template: cookbook-nova/recipes/nova-common.rb:124
FC033: Missing template: cookbook-nova/recipes/nova-common.rb:132
FC033: Missing template: cookbook-nova/recipes/nova-common.rb:140
FC033: Missing template: cookbook-nova/recipes/nova-common.rb:148
FC034: Unused template variables: cookbook-nova/templates/default/nova.conf.erb:1
FC034: Unused template variables: cookbook-nova/templates/default/openrc.erb:1
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-ec2.rb:50
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-ec2.rb:138
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-metadata.rb:50
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-metadata.rb:65
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-os-compute.rb:50
FC043: Prefer new notification syntax: cookbook-nova/recipes/api-os-compute.rb:137
FC043: Prefer new notification syntax: cookbook-nova/recipes/compute.rb:54
FC043: Prefer new notification syntax: cookbook-nova/recipes/libvirt.rb:72
FC043: Prefer new notification syntax: cookbook-nova/recipes/libvirt.rb:84
FC043: Prefer new notification syntax: cookbook-nova/recipes/libvirt.rb:95
FC043: Prefer new notification syntax: cookbook-nova/recipes/network.rb:32
FC043: Prefer new notification syntax: cookbook-nova/recipes/nova-cert.rb:31
FC043: Prefer new notification syntax: cookbook-nova/recipes/scheduler.rb:40
FC043: Prefer new notification syntax: cookbook-nova/recipes/vncproxy.rb:39
FC043: Prefer new notification syntax: cookbook-nova/recipes/vncproxy.rb:47
2013-01-03 22:55:45 -08:00
John Dewey dbec126937 No longer creating variables per attribute
Just use node in the templates... no need to map to a variables... :/
2012-11-21 23:02:54 -08:00
John Dewey 4f35444f8c formatting changes to conform to a common standard 2012-11-21 22:22:34 -08:00
Jay Pipes 46a69a6340 Lint and test-kitchen fixes
* Adds test kitchen infrastructure
* Fixes lint errors produced from foodcritic
2012-11-14 16:19:52 -05:00
mattray dc1910ff82 clean up default networks for libvirt, enable dbus if it's not up 2012-10-05 17:19:39 -05:00
mattray 5e127eecec sync with rcbops 9/17 c3aa4f1feffc6794302cae54cef4c9aaa5b5e1b3 2012-09-19 11:00:29 -05:00
mattray 584262e87a remove monitoring 2012-07-27 15:49:34 -05:00
galstrom21 c7d76e9a2b Ensuring copyright banner exists 2012-07-23 21:34:14 -05:00
wilk 19537ee465 Fix libvirt.rb monitoring definition 2012-07-16 17:41:01 -05:00
Joseph W. Breu 225839a03a remove static ssh keys and use the dsh provider 2012-07-10 12:18:15 -05:00
rpedde 5e84af845d port to monitoring cookbook 2012-06-25 15:24:03 -05:00
galstrom21 126acb7e96 Removing TODO 2012-06-14 12:08:42 -05:00
galstrom21 d9b0657d9d adding monit support for libvirt-bin, moved libvirt collectd stuff from compute-monitoring to libvirt-monitoring 2012-06-08 12:19:39 -05:00
rpedde 7dd649c7c9 updates for libvirt and network to port to osops_utils 2012-05-29 08:53:43 -05:00
Darren Birkett 2616d09bcc bring nova attrs into nova namespace
- edited attributes
- updated readme
- updated relevant recipes to use new attrs
- updated cookbook version
- updated libvirt template
2012-04-26 17:39:22 +01:00