From 3f07db5be41ed143c97c422c190d2c8775c06049 Mon Sep 17 00:00:00 2001 From: Oleg Gelbukh Date: Mon, 26 May 2014 14:19:36 +0000 Subject: [PATCH] YAML formatted model description in docs Add YAML formatted description of current model structure to documentation Change-Id: I82d543974169231fb0b7f34993eb97954996789b --- doc/source/openstack_architecture_model.rst | 37 ++++++++++++++------- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/doc/source/openstack_architecture_model.rst b/doc/source/openstack_architecture_model.rst index da898d5..d02c6ae 100644 --- a/doc/source/openstack_architecture_model.rst +++ b/doc/source/openstack_architecture_model.rst @@ -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: + - ... + - ...