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