Browse Source

Merge "Remove workbook related to plan environment"

tags/12.1.0
Zuul 1 week ago
parent
commit
1a1af21e0e
2 changed files with 0 additions and 99 deletions
  1. +0
    -2
      setup.cfg
  2. +0
    -97
      workbooks/heat_environments.yaml

+ 0
- 2
setup.cfg View File

@@ -105,8 +105,6 @@ mistral.actions =
tripleo.derive_params.get_host_cpus_list = tripleo_common.actions.derive_params:GetHostCpusListAction
tripleo.git.clean = tripleo_common.actions.vcs:GitCleanupAction
tripleo.git.clone = tripleo_common.actions.vcs:GitCloneAction
tripleo.heat_capabilities.get = tripleo_common.actions.heat_capabilities:GetCapabilitiesAction
tripleo.heat_capabilities.update = tripleo_common.actions.heat_capabilities:UpdateCapabilitiesAction
tripleo.package_update.update_stack = tripleo_common.actions.package_update:UpdateStackAction
tripleo.parameters.get = tripleo_common.actions.parameters:GetParametersAction
tripleo.parameters.get_flatten = tripleo_common.actions.parameters:GetFlattenedParametersAction

+ 0
- 97
workbooks/heat_environments.yaml View File

@@ -1,97 +0,0 @@
---
version: '2.0'
name: tripleo.heat_environments.v1
description: TripleO Heat Environments Workflows

workflows:

update:

description: >
Update plan environment with selected environments.

Takes a list of environment files and depending on the value of the
enabled flag, adds or removes them from the plan environment.

input:
- environments
- container
- purge_missing: false
- sort_environments: false
- queue_name: tripleo

output:
plan_environment: <% $.result %>

tags:
- tripleo-common-managed

tasks:

update:
input:
environments: <% $.environments %>
container: <% $.container %>
purge_missing: <% $.purge_missing %>
sort_environments: <% $.sort_environments %>
action: tripleo.heat_capabilities.update
on-complete: send_message
publish:
status: SUCCESS
message: <% task().result %>
plan_environment: <% task().result %>
publish-on-error:
status: FAILED
message: <% task().result %>

send_message:
workflow: tripleo.messaging.v1.send
input:
queue_name: <% $.queue_name %>
type: <% execution().name %>
status: <% $.get('status', 'SUCCESS') %>
execution: <% execution() %>
messages: <% $.get('message', '') %>
payload:
plan_environment: <% $.get('plan_environment', []) %>

get:

description: >
Get list of available heat environments.

Parses the capabilities_map.yaml file in a given plan and
returns a list of environments.

input:
- container
- queue_name: tripleo

output:
capabilities: <% $.result %>

tags:
- tripleo-common-managed

tasks:
get:
action: tripleo.heat_capabilities.get container=<% $.container %>
on-complete: send_message
publish:
status: SUCCESS
message: <% task().result %>
capabilities: <% task().result %>
publish-on-error:
status: FAILED
message: <% task().result %>

send_message:
workflow: tripleo.messaging.v1.send
input:
queue_name: <% $.queue_name %>
type: <% execution().name %>
status: <% $.get('status', 'SUCCESS') %>
execution: <% execution() %>
messages: <% $.get('message', '') %>
payload:
capabilities: <% $.get('capabilities', []) %>

Loading…
Cancel
Save