YAML formatted model description in docs

Add YAML formatted description of current model structure to
documentation

Change-Id: I82d543974169231fb0b7f34993eb97954996789b
This commit is contained in:
Oleg Gelbukh 2014-05-26 14:19:36 +00:00
parent 1dc5e57597
commit 3f07db5be4
1 changed files with 25 additions and 12 deletions

View File

@ -65,16 +65,29 @@ This section proposes data model format which allows to describe an OpenStack
installation. The model includes data regarding physical infrastructure, logical
topology of services and mapping between the two.
Architecture data model could be serialized as JSON or YaML document of the
following format::
Current model of OpenStack architecture used in Rubick is defined in module
``rubick/model.py``. This module contains following classes in hierarchy below:
openstack
nodes
node1
-param1: value
-param2: value
services
nova
configuration
-param1: value
-param2: value
OpenStack:
hosts:
- Host: hostname1
components:
- Service: NovaApiComponent
config:
- key: value
- ...
- Service: KeystoneComponent
config:
- key: value
- ...
- ...
filesystem:
- resource1: FileResource
- resource2: DirectoryResource
- ...
- Host: hostname2
components:
- ...
filesystem:
- ...
- ...