Browse Source

Add RootStackName parameter on stack update

The task to add the RootStackName parameter to plan-environment.yaml in
the plan was only in the create_deployment_plan workflow. This patch
also adds it to the update_deployment_plan workflow so that the
parameter will be present in the environment for both stack create and
update.

Change-Id: I560eaff21c22d2ab70c657b35a3d43a76003e6ba
Closes-Bug: #1853362
(cherry picked from commit 07444eed07)
changes/36/707436/1
James Slagle Emilien Macchi 3 months ago
parent
commit
84032f3b6a
2 changed files with 19 additions and 1 deletions
  1. +5
    -0
      releasenotes/notes/add-rootstackname-on-update-258dbf091fea497e.yaml
  2. +14
    -1
      workbooks/plan_management.yaml

+ 5
- 0
releasenotes/notes/add-rootstackname-on-update-258dbf091fea497e.yaml View File

@@ -0,0 +1,5 @@
---
fixes:
- The RootStackName parameter is now added to the plan in
plan-environment.yaml on both stack create and update. Previously it was
only added on create.

+ 14
- 1
workbooks/plan_management.yaml View File

@@ -280,9 +280,22 @@ workflows:

ensure_passwords_exist:
action: tripleo.parameters.generate_passwords container=<% $.container %>
on-success: container_images_prepare
on-success: add_root_stack_name
on-error: ensure_passwords_exist_set_status_failed

add_root_stack_name:
action: tripleo.parameters.update
input:
container: <% $.container %>
validate: <% $.validate_stack %>
parameters:
RootStackName: <% $.container %>
on-success: container_images_prepare
publish-on-error:
status: FAILED
message: <% task().result %>
on-error: send_message

container_images_prepare:
description: >
Populate all container image parameters with default values.


Loading…
Cancel
Save