Book Image

OpenStack for Architects - Second Edition

By : Michael Solberg, Ben Silverman
Book Image

OpenStack for Architects - Second Edition

By: Michael Solberg, Ben Silverman

Overview of this book

Over the past six years, hundreds of organizations have successfully implemented Infrastructure as a Service (IaaS) platforms based on OpenStack. The huge amount of investment from these organizations, including industry giants such as IBM and HP, as well as open source leaders, such as Red Hat, Canonical, and SUSE, has led analysts to label OpenStack as the most important open source technology since the Linux operating system. Due to its ambitious scope, OpenStack is a complex and fast-evolving open source project that requires a diverse skill set to design and implement it. OpenStack for Architects leads you through the major decision points that you'll face while architecting an OpenStack private cloud for your organization. This book will address the recent changes made in the latest OpenStack release i.e Queens, and will also deal with advanced concepts such as containerization, NVF, and security. At each point, the authors offer you advice based on the experience they've gained from designing and leading successful OpenStack projects in a wide range of industries. Each chapter also includes lab material that gives you a chance to install and configure the technologies used to build production-quality OpenStack clouds. Most importantly, the book focuses on ensuring that your OpenStack project meets the needs of your organization, which will guarantee a successful rollout.
Table of Contents (17 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Creating the composition layer


Now that our infrastructure software is in place, we'll begin creating our composition layer. As we mentioned earlier, we'll be starting with the known good configuration we got from running the Packstack command in Chapter 2, Architecting the Cloud.

Starting our Puppet modules

Our composition layer will be stored in two Puppet modules, using the profiles and roles pattern developed by Craig Dunn (http://www.craigdunn.org/2012/05/239/). We'll store the modules in a directory named puppet/modules in our new Git repository. The following steps will create the new modules within our repository:

  1. Clone the repository. It is recommended to use an unprivileged user account for this section:
$ git clonehttp://git@localhost/git/openstack/
  1. Next, create the directory for the modules:
$ mkdir -p openstack/puppet/modules
  1. Use the puppet/modules command to create the new modules in the directory:
$ cd openstack/puppet/modules 
$ puppet module generate openstack-profile 
$ puppet...