Browse Source

Legacy tasks are turned back for exmaple v3.0.0

In previous patch tasks.yaml contained legacy tasks was cleaned up
but it turned up that some QA tests was relying on this tasks output
so this tasks was moved to the deployment_tasks.yaml to provide this
output.

Double unfortuantely FPB validation does not support tasks <v1.0.0
validation for the deployment_tasks.yaml without major changes in
validation logic.

So the tasks was converted to the tasks v1.0.0 by adding tasks id.

Change-Id: I1f820030a0575155b06db3c493accadc252c241a
Closes-Bug: #1625244
Ilya Kutukov 2 years ago
parent
commit
40bca6b4f0
1 changed files with 50 additions and 0 deletions
  1. 50
    0
      examples/fuel_plugin_example_v3/deployment_tasks.yaml

+ 50
- 0
examples/fuel_plugin_example_v3/deployment_tasks.yaml View File

@@ -41,3 +41,53 @@
41 41
     retries: 3
42 42
     interval: 20
43 43
     timeout: 180
44
+
45
+# This legacy tasks will be applied on controller nodes
46
+- id: fuel_plugin_example_v3-legacy-1
47
+  role: ['primary-controller', 'controller']
48
+  stage: post_deployment
49
+  type: shell
50
+  parameters:
51
+    cmd: bash deploy.sh
52
+    timeout: 42
53
+
54
+- id: fuel_plugin_example_v3-legacy-2
55
+  role: '*'
56
+  stage: pre_deployment/100
57
+  type: shell
58
+  parameters:
59
+    cmd: echo all > /tmp/plugin+100.all
60
+    timeout: 42
61
+
62
+- id: fuel_plugin_example_v3-legacy-3
63
+  role: '*'
64
+  stage: pre_deployment/+101.0
65
+  type: shell
66
+  parameters:
67
+    cmd: echo all > /tmp/plugin+100.0.all
68
+    timeout: 42
69
+
70
+- id: fuel_plugin_example_v3-legacy-4
71
+  role: '*'
72
+  stage: pre_deployment/-100
73
+  type: shell
74
+  parameters:
75
+    cmd: echo all > /tmp/plugin-100.all
76
+    timeout: 42
77
+
78
+- id: fuel_plugin_example_v3-legacy-5
79
+  role: [compute]
80
+  stage: pre_deployment/-101
81
+  type: puppet
82
+  parameters:
83
+    puppet_manifest: "deploy.pp"
84
+    puppet_modules: "."
85
+    timeout: 3600
86
+    retries: 2
87
+
88
+- id: fuel_plugin_example_v3-legacy-6
89
+  role: '*'
90
+  stage: pre_deployment
91
+  type: reboot
92
+  parameters:
93
+    timeout: 600

Loading…
Cancel
Save