$ pip install -U enos
You may prefer to go with a virtualenv. Please refer to the virtualenv documentation and the rest of this section for further information.
Then install enos inside a virtualenv:
$ mkdir my-experiment && cd my-experiment $ virtualenv venv $ source venv/bin/activate (venv) $ pip install -U pip (venv) $ pip install enos
The latest packaged version of enos will install the latest stable version of OpenStack. If you want to install the development version of OpenStack, you should install enos from sources (see Contribute).
To get started you can get the sample configuration file and edit it:
$ enos new > reservation.yaml $ <editor> reservation.yaml
The configuration may vary from one provider to another, please refer to the dedicated Provider configuration
If a key is defined several times in the configuration file, only the last
occurence will be taken into account. In particular to switch from one
provider to another, you can move down the key
provider and its
Once your configuration is done, you can launch the deployment :
(venv) $ enos deploy
The deployment is the combination of the following three phases:
Acquire the raw resources that are necessary for the deployment of OpenStack. Enos acquires resources according to the
resourcesinformation in the reservation file. One can perform this phase by calling
Deploy OpenStack to the resources acquired during the previous phase. Enos uses the resource list provided by the previous phase and combines it with the information specified in the file targeted by the
inventorykey to produce a file that gives a mapping of which OpenStack services have to be deployed to which resources. Enos then calls the Kolla-Ansible tool with this file to deploy the containerized OpenStack services to the right resources. One can perform this phase by calling
If you don’t provide an
inventoryin your current working directory, then Enos uses a default one. You can view it on GitHub at enos/inventories/inventory.sample. Note that the produced file is available at
cwdreferencing to your current working directory).
Initialize the freshly deployed OpenStack. Enos initializes OpenStack with the bare necessities, i.e., install a
memberrole, download and install a cirros image, install default flavors (m1.tiny, ..., m1.xlarge) and setup a network (one public/one private). One can perform this phase by calling