Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Wrapper cookbook to provide HA services for various openstack components.

Merge pull request #82 from cbuben/issue-954

Merged automatically by jenkins after successful build test
latest commit 02b2b2dd4d
@rcbjenkins rcbjenkins authored
Failed to load latest commit information.
attributes haproxy: remove forwardfor for nova-api-metadata
recipes Add contribution guidance
metadata.rb move version out of metadata.rb into VERSION


Issues have been disabled for this repository.
Any issues with this cookbook should be raised here:

Please title the issue as follows:

[openstack-ha]: <short description of problem>

In the issue description, please include a longer description of the issue, along with any relevant log/command/error output.
If logfiles are extremely long, please place the relevant portion into the issue description, and link to a gist containing the entire logfile

Please see the contribution guidelines for more information about contributing to this cookbook.


Installs haproxy using the haproxy cookbook, and adds floating IPs per load balanced service using the keepalived cookbook.


Chef 0.10.0 or higher required (for Chef environment use).


  • CentOS >= 6.3
  • Ubuntu >= 12.04


The following cookbooks are dependencies:

  • haproxy
  • keepalived
  • nova
  • osops-utils



  • Iterates through the list of services provided in the attributes/environment
  • Adds a haproxy config file per service, and uses search to discover the relevant back ends for that service.
  • Uses provided vip from the environment to add a floating IP using keepalived (eg node['vips']['glance']['api'] would contain the required VIP to be used for load balancing glance api requests


  • default['ha']['available_services'] - single attribute that contains a list of hashes, one hash per service.
  • Each service hash contains the following:
    • role - name of the role to be searched for when building the back ends for the haproxy config
    • namespace - name of the attribute namespace to be searched for (see for eg nova cookbook attributes)
    • service - name of the service to be searched for in the relevant service hash (see for eg nova cookbook attributes)
    • service_type - the type of service that keystone expects (identity, compute, ec2, volume, image, object-store)

License and Author

Author:: Justin Shepherd (
Author:: Jason Cannavale (
Author:: Ron Pedde (
Author:: Joseph Breu (
Author:: William Kelly (
Author:: Darren Birkett (
Author:: Evan Callicoat (
Author:: Andy McCrae (<

Copyright 2012-2013, Rackspace US, Inc.

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

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.

Something went wrong with that request. Please try again.