From 194d3461e60b544a13478eaaddda23f36d11e6ce Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Thu, 31 Mar 2022 13:46:42 +0200 Subject: [PATCH] DEV-375: added process model for creating backups - databaseEngines: postgres,maria --- smardigo/backup/process/primary-process.bpmn | 311 ++++++++++++------ .../script/create-awx-paramaters.groovy | 2 +- 2 files changed, 216 insertions(+), 97 deletions(-) diff --git a/smardigo/backup/process/primary-process.bpmn b/smardigo/backup/process/primary-process.bpmn index ce9619f..a06cb0f 100644 --- a/smardigo/backup/process/primary-process.bpmn +++ b/smardigo/backup/process/primary-process.bpmn @@ -6,13 +6,12 @@ + Flow_1a8vxf0 - - Flow_0ufs5lg @@ -23,21 +22,9 @@ done - Flow_0htljqr + Flow_1hsnadn Flow_0ufs5lg - - - - - - - - Flow_0oc7f69 - Flow_0htljqr - - - @@ -46,12 +33,17 @@ Flow_1vjr74e - Flow_0oc7f69 + Flow_0g6g4pi - + + + postgres + maria + + ${0} ${1} @@ -67,6 +59,34 @@ Flow_1a8vxf0 Flow_1vjr74e + + Flow_0g6g4pi + Flow_1hsnadn + + ${nrOfInstances == nrOfCompletedInstances} + + + Flow_18mi4w5 + + + Flow_0284cem + + + + + + + + Flow_18mi4w5 + Flow_0284cem + + + + + + + + @@ -135,14 +155,14 @@ Flow_0a10mmp Flow_042nfag - - - - - - - + + + + + + + @@ -163,142 +183,241 @@ Flow_1tye2db - + + + + + + + ${10} + new + + + Flow_04zgivk + Flow_09o63g2 + + + Flow_04zgivk + + + + + + + + + Flow_09o63g2 + Flow_1sb0o0i + + + + + + + + + ${999} + done + + + Flow_1sb0o0i + Flow_1wv6nty + + + Flow_1wv6nty + - + - - - - - - - + + + - - + + - - - + + + - - - + + + + + + + - + - + - + - + - - - - + - + - + - - + + - - - + + + - - - + + + - - - + + + + + + + + + + + + + + + - - - + + + + + + + - - + + - - - + + + - - - + + + - - - + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - - - - - - + + + + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/smardigo/backup/script/create-awx-paramaters.groovy b/smardigo/backup/script/create-awx-paramaters.groovy index 7afbc8e..8415781 100644 --- a/smardigo/backup/script/create-awx-paramaters.groovy +++ b/smardigo/backup/script/create-awx-paramaters.groovy @@ -5,7 +5,7 @@ def env = [ scope_id: contextScopeId, smardigo_management_action: smardigoManagementAction, stage: cluster.stage, - database_engine: 'postgres', + database_engine: database_engine, ] if (binding.hasVariable('extraVariables')) { env << extraVariables