From de4e4627cd623c7e796d1e99e0124a295258f553 Mon Sep 17 00:00:00 2001 From: Eric Lavarde Date: Tue, 6 Jul 2021 18:47:23 +0200 Subject: [PATCH] Adapt Workflows docs to new schema and fix schedules - adapt workflow_job_templates' readme examples to new schema - schedules defaults was missing an empty list --- roles/schedules/defaults/main.yml | 2 +- roles/workflow_job_templates/README.md | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/roles/schedules/defaults/main.yml b/roles/schedules/defaults/main.yml index e5a042c48..10267f101 100644 --- a/roles/schedules/defaults/main.yml +++ b/roles/schedules/defaults/main.yml @@ -11,7 +11,7 @@ # These are the default variables specific to the license role # list of dict describing Tower schedules: -controller_schedules: +controller_schedules: [] # possible fields: # - name: "schedule_name" # mandatory # new_name: "new_name" # optional diff --git a/roles/workflow_job_templates/README.md b/roles/workflow_job_templates/README.md index a1217914e..3d1e64381 100644 --- a/roles/workflow_job_templates/README.md +++ b/roles/workflow_job_templates/README.md @@ -202,6 +202,9 @@ controller_workflows: identifier: node101 unified_job_template: name: RHVM-01 + type: job_template + organization: + name: Default related: success_nodes: - workflow_job_template: @@ -211,6 +214,9 @@ controller_workflows: identifier: node201 unified_job_template: name: test-template-1 + type: job_template + organization: + name: Default notification_templates_started: [] notification_templates_success: [] notification_templates_error: [] @@ -251,7 +257,9 @@ controller_workflows: "all_parents_must_converge": false, "identifier": "node101", "unified_job_template": { - "name": "RHVM-01" + "name": "RHVM-01", + "type": "job_template", + "organization": { "name": "Default" } }, "related": { "credentials": [ @@ -277,7 +285,9 @@ controller_workflows: "all_parents_must_converge": false, "identifier": "node201", "unified_job_template": { - "name": "test-template-1" + "name": "test-template-1", + "type": "job_template", + "organization": { "name": "Default" } }, "related": { "credentials": [