Web version : http://www.logilab.org/blogentry/145033
At Logilab we are big fans of SaltStack, we use it quite
centralize, configure and automate deployments.
We've talked on our blog about how to build a debian AMI "by
and we wanted to automate this
fully. Hence the salt way seemed to be the obvious way to
So we wrote salt-ami-cloud-builder. It is mainly glue
pieces of software that we use and like. If you already have
definition of a type of host that you provision using
salt-ami-cloud-builder should be able to generate the
Building a Debian based OpenStack private cloud using salt
realize that we needed a way to generate various flavours of
the following reasons:
* Some of our openstack users need "preconfigured" AMIs
(for example a
Debian system with Postgres 9.1 and the appropriate Python
without doing the modifications by hand or waiting for an
script to do the job at AMI boot time.
* Some cloud use cases require that you boot many (hundreds
instance) machines with the same configuration. While tools
automate the job, waiting while the same download and
place hundreds of times is a waste of resources. If the
have already been integrated into a specialized ami, you
save a lot of
computing time. And especially in the amazon (or other
infrastructures), these resources are not free.
* Sometimes one needs to repeat a computation on an instance
very same packages and input files, possibly years after the
Freezing packages and files in one preconfigured AMI helps
this a lot.
When relying only on a salt configuration the installed
be (exactly) the same from one run to the other.
Get it now !
Grab the code here: http://hg.logilab.org/master/salt-ami-cloud-builder
The project page is http://www.logilab.org/project/salt-ami-cloud-builder
The docs can be read here: http://docs.logilab.org/salt-ami-cloud-builder
We hope you find it useful. Bug reports and contributions
The logilab-salt-ami-cloud-builder team.