RETIRED, Chef Cookbook - OpenStack Compute
Go to file
Roger Luethi 33aa18a008 placement_api: create valid apache config before installing package
If apache is (re)starting while the chef-client installs the
nova-placement-api package, it may pick up the vanilla apache2 conf file
before chef-client gets around to fixing it which may result in apache2
failing due to a non-working configuration.

This changeset eliminates the race by creating a valid configuration
before installing the software. The solution is based on the assumption
that no reasonably configured package manager will overwrite an
existing, user-created configuration file.

backport: queens

Change-Id: Id9f1d165411fc5b3cc73b29a36840cf4dc63d81b
(cherry picked from commit ff074af903)
2019-08-02 21:40:22 +00:00
.delivery Add delivery config 2018-04-11 21:51:34 -07:00
attributes placement: os_region_name -> region_name 2018-10-02 16:42:40 +02:00
files/default compute refactor for Pike and Chef 13 2017-12-10 20:02:43 -08:00
recipes placement_api: create valid apache config before installing package 2019-08-02 21:40:22 +00:00
spec Merge "Rename attributes: vncserver_* -> server_*" into stable/queens 2018-10-04 22:34:23 +00:00
templates/default Make nova.conf more readable 2018-10-05 09:58:50 +00:00
.gitignore Initial kilo updates 2015-02-27 14:40:17 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:31:25 +00:00
.rubocop.yml Initial kilo updates 2015-02-27 14:40:17 -06:00
.rubocop_todo.yml Initial compute Pike updates 2017-09-25 16:57:08 +00:00
.zuul.yaml Migrate Zuul jobs to openstack/openstack-chef 2018-08-31 23:24:26 -07:00
Berksfile Fix Berksfile to request stable/queens branch 2019-08-02 19:45:29 +00:00
CONTRIBUTING.md Replace http with https for doc links in cookbook-openstack-compute 2017-09-07 00:27:41 -07:00
LICENSE compute refactor for Pike and Chef 13 2017-12-10 20:02:43 -08:00
README.md remove all ceph related attributes,recipes,specs and the cookbook dependency 2018-04-05 16:38:31 +02:00
Rakefile compute refactor for Pike and Chef 13 2017-12-10 20:02:43 -08:00
TESTING.md Sync stackforge/cookbook* to openstack/cookbook* for nova cookbook 2015-06-15 15:20:25 +08:00
bootstrap.sh stable/queens release patch 2018-07-26 20:54:19 -07:00
metadata.rb placement_api: create valid apache config before installing package 2019-08-02 21:40:22 +00:00

README.md

Team and repository tags

Team and repository tags

Chef OpenStack Logo

Description

This cookbook installs the OpenStack Compute service Nova as part of the OpenStack reference deployment Chef for OpenStack. The https://github.com/openstack/openstack-chef-repo contains documentation for using this cookbook in the context of a full OpenStack deployment. Nova is currently installed from packages.

https://docs.openstack.org/mitaka/config-reference/compute.html

Requirements

  • Chef 12 or higher
  • chefdk 0.9.0 or higher for testing (also includes berkshelf for cookbook dependency resolution)

Platform

  • ubuntu
  • redhat
  • centos

Cookbooks

The following cookbooks are dependencies:

  • 'openstack-common', '>= 14.0.0'
  • 'openstack-identity', '>= 14.0.0'
  • 'openstack-image', '>= 14.0.0'
  • 'openstack-network', '>= 14.0.0'
  • 'openstackclient', '>= 0.1.0'

Attributes

Please see the extensive inline documentation in attributes/*.rb for descriptions of all the settable attributes for this cookbook.

Note that all attributes are in the default['openstack'] "namespace"

The usage of attributes to generate the node.conf is decribed in the openstack-common cookbook.

Recipes

openstack-compute::api-metadata

  • Installs the nova metadata package

openstack-compute::api-os-compute

  • Installs OS API and configures the service and endpoints in keystone

openstack-compute::client

  • Install the nova client packages

openstack-compute::compute

  • Installs nova-compute service

openstack-compute::compute

  • Installs nova-conductor service

openstack-compute::identity_registration

  • Registers the nova endpoints with keystone

openstack-compute::libvirt

  • Installs libvirt, used by nova compute for management of the virtual machine environment

openstack-compute::nova-cert

  • Installs nova-cert service

openstack-compute::nova-common

  • Builds the basic nova.conf config file with details of the rabbitmq, mysql, glance and keystone servers

openstack-compute::nova-setup

  • Sets up the nova networks with nova-manage

openstack-compute::scheduler

  • Installs nova scheduler service

openstack-compute::vncproxy

  • Installs and configures the vncproxy service for console access to VMs

openstack-compute::serialproxy

  • Installs and configures the serialproxy service for serial console access to VMs

License and Author

Author Justin Shepherd (justin.shepherd@rackspace.com)
Author Jason Cannavale (jason.cannavale@rackspace.com)
Author Ron Pedde (ron.pedde@rackspace.com)
Author Joseph Breu (joseph.breu@rackspace.com)
Author William Kelly (william.kelly@rackspace.com)
Author Darren Birkett (darren.birkett@rackspace.co.uk)
Author Evan Callicoat (evan.callicoat@rackspace.com)
Author Matt Ray (matt@opscode.com)
Author Jay Pipes (jaypipes@att.com)
Author John Dewey (jdewey@att.com)
Author Kevin Bringard (kbringard@att.com)
Author Craig Tracey (craigtracey@gmail.com)
Author Sean Gallagher (sean.gallagher@att.com)
Author Ionut Artarisi (iartarisi@suse.cz)
Author JieHua Jin (jinjhua@cn.ibm.com)
Author David Geng (gengjh@cn.ibm.com)
Author Salman Baset (sabaset@us.ibm.com)
Author Chen Zhiwei (zhiwchen@cn.ibm.com)
Author Mark Vanderwiel (vanderwl@us.ibm.com)
Author Eric Zhou (zyouzhou@cn.ibm.com)
Author Mathew Odden (mrodden@us.ibm.com)
Author Jan Klare (j.klare@cloudbau.de)
Author Christoph Albers (c.albers@x-ion.de)
Copyright Copyright (c) 2012-2013, Rackspace US, Inc.
Copyright Copyright (c) 2012-2013, Opscode, Inc.
Copyright Copyright (c) 2012-2013, AT&T Services, Inc.
Copyright Copyright (c) 2013, Craig Tracey
Copyright Copyright (c) 2013-2014, SUSE Linux GmbH
Copyright Copyright (c) 2013-2014, IBM, Corp.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.