Book Image

Mastering OpenStack

By : Omar Khedher
Book Image

Mastering OpenStack

By: Omar Khedher

Overview of this book

Table of Contents (18 chapters)
Mastering OpenStack
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
8
Extending OpenStack – Advanced Networking Features and Deploying Multi-tier Applications
Index

Cooking Swift


The cookbooks uploaded to the Chef server in Chapter 2, Deploying OpenStack – DevOps and OpenStack Dual Deal, include as well the Swift cookbook named cookbook-openstack-object-storage.

Note

If you did not upload the Swift cookbook, you can download it and add to your Chef cookbook repository from GitHub: https://github.com/openstack/cookbook-openstack-object-storage/tree/stable/havana.

For a large environment, it is recommended to split the proxy and storage layers, as shown in the previous figure. Optionally, we can assign, for each storage node, a triple Swift server: account, container and object role while keeping dedicated nodes for the Swift proxy server. From our Chef server, we can assign the following roles.

A Swift storage node role, add this code:

name "packtpub-os-object-storage"
description "Swift Triple Servers Roles"
run_list(
  "role[packtpub-os-base]",
  "role[packtpub-os-object-storage-account]",
  "role[packtpub-os-object-storage-container]",
  "role[packtpub...