From 9dfb24e830c24956fdbf27c1c1b925bf71ee2dee Mon Sep 17 00:00:00 2001 From: Andriy Popovych Date: Fri, 10 Jul 2015 11:52:58 +0300 Subject: [PATCH] Fix yaml metadata example for volumes and roles Change-Id: I7a8b2d0ed32ef9d704cd47eb6237e7144d6bf3ad Implements: blueprint role-as-a-plugin --- specs/7.0/role-as-a-plugin.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/specs/7.0/role-as-a-plugin.rst b/specs/7.0/role-as-a-plugin.rst index c0c21b1f..01c63eb1 100644 --- a/specs/7.0/role-as-a-plugin.rst +++ b/specs/7.0/role-as-a-plugin.rst @@ -278,19 +278,15 @@ Plugin impact .. code-block:: yaml role_name: - metadata: - name: "Some plugin role" - description: "Some description" - conflicts: - - some_not_compatible_role - limits: - min: 1 - restrictions: - - condition: "some logic condition" - message: "Some message for restriction warning" - volumes_mapping: - - {allocate_size: "min", id: "os"} - - {allocate_size: "all", id: "role_volume_name"} + name: "Some plugin role" + description: "Some description" + conflicts: + - some_not_compatible_role + limits: + min: 1 + restrictions: + - condition: "some logic condition" + message: "Some message for restriction warning" Description of volumes partition in `volumes` yaml file: @@ -312,6 +308,10 @@ Plugin impact name: "swap" size: {generator: "calc_swap_size"} file_system: "swap" + volumes_roles_mapping: + role_name: + - {allocate_size: "min", id: "os"} + - {allocate_size: "all", id: "role_volume_name"} Pre/Post deployment tasks are kept in `tasks` yaml as before and deployment tasks will be described in `deployment_tasks` yaml file.