Browse Source

Old tasks.yaml content is commented for plugins packages v4.0

Examples and templates are affected

Change-Id: I305d499abbd74bc1f3b0e9de60d85ef66764478e
Closes-Bug: #1619255
Ilya Kutukov 2 years ago
parent
commit
d6d8b0de6e

+ 45
- 42
examples/fuel_plugin_example_v4/tasks.yaml View File

@@ -1,46 +1,49 @@
1 1
 # WARNING: `tasks.yaml` will be deprecated in further releases.
2 2
 # Please, use `deployment_tasks.yaml` to describe tasks instead.
3 3
 
4
-# This tasks will be applied on controller nodes
5
-- role: ['primary-controller', 'controller']
6
-  stage: post_deployment
7
-  type: shell
8
-  parameters:
9
-    cmd: bash deploy.sh
10
-    timeout: 42
4
+# This file is left only as an example of the old tasks format what you could
5
+# meet during plugins development and support.
11 6
 
12
-- role: '*'
13
-  stage: pre_deployment/100
14
-  type: shell
15
-  parameters:
16
-    cmd: echo all > /tmp/plugin+100.all
17
-    timeout: 42
18
-
19
-- role: '*'
20
-  stage: pre_deployment/+101.0
21
-  type: shell
22
-  parameters:
23
-    cmd: echo all > /tmp/plugin+100.0.all
24
-    timeout: 42
25
-
26
-- role: '*'
27
-  stage: pre_deployment/-100
28
-  type: shell
29
-  parameters:
30
-    cmd: echo all > /tmp/plugin-100.all
31
-    timeout: 42
32
-
33
-- role: [compute]
34
-  stage: pre_deployment/-101
35
-  type: puppet
36
-  parameters:
37
-    puppet_manifest: "deploy.pp"
38
-    puppet_modules: "."
39
-    timeout: 3600
40
-    retries: 2
41
-
42
-- role: '*'
43
-  stage: pre_deployment
44
-  type: reboot
45
-  parameters:
46
-    timeout: 600
7
+## This tasks will be applied on controller nodes
8
+#- role: ['primary-controller', 'controller']
9
+#  stage: post_deployment
10
+#  type: shell
11
+#  parameters:
12
+#    cmd: bash deploy.sh
13
+#    timeout: 42
14
+#
15
+#- role: '*'
16
+#  stage: pre_deployment/100
17
+#  type: shell
18
+#  parameters:
19
+#    cmd: echo all > /tmp/plugin+100.all
20
+#    timeout: 42
21
+#
22
+#- role: '*'
23
+#  stage: pre_deployment/+101.0
24
+#  type: shell
25
+#  parameters:
26
+#    cmd: echo all > /tmp/plugin+100.0.all
27
+#    timeout: 42
28
+#
29
+#- role: '*'
30
+#  stage: pre_deployment/-100
31
+#  type: shell
32
+#  parameters:
33
+#    cmd: echo all > /tmp/plugin-100.all
34
+#    timeout: 42
35
+#
36
+#- role: [compute]
37
+#  stage: pre_deployment/-101
38
+#  type: puppet
39
+#  parameters:
40
+#    puppet_manifest: "deploy.pp"
41
+#    puppet_modules: "."
42
+#    timeout: 3600
43
+#    retries: 2
44
+#
45
+#- role: '*'
46
+#  stage: pre_deployment
47
+#  type: reboot
48
+#  parameters:
49
+#    timeout: 600

+ 26
- 23
fuel_plugin_builder/templates/v4/plugin_data/tasks.yaml View File

@@ -1,26 +1,29 @@
1 1
 # WARNING: `tasks.yaml` will be deprecated in further releases.
2 2
 # Please, use `deployment_tasks.yaml` to describe tasks instead.
3 3
 
4
-# This tasks will be applied on controller nodes,
5
-# here you can also specify several roles, for example
6
-# ['cinder', 'compute'] will be applied only on
7
-# cinder and compute nodes
8
-- role: ['controller']
9
-  stage: post_deployment
10
-  type: shell
11
-  parameters:
12
-    cmd: bash deploy.sh
13
-    timeout: 42
14
-# Task is applied for all roles
15
-- role: '*'
16
-  stage: pre_deployment
17
-  type: shell
18
-  parameters:
19
-    cmd: echo all > /tmp/plugin.all
20
-    timeout: 42
21
-# "reboot" task reboots the nodes and waits until they get back online
22
-# - role: '*'
23
-#   stage: pre_deployment
24
-#   type: reboot
25
-#   parameters:
26
-#     timeout: 600
4
+# This file is left only as an example of the old tasks format what you could
5
+# meet during plugins development and support.
6
+
7
+## This tasks will be applied on controller nodes,
8
+## here you can also specify several roles, for example
9
+## ['cinder', 'compute'] will be applied only on
10
+## cinder and compute nodes
11
+#- role: ['controller']
12
+#  stage: post_deployment
13
+#  type: shell
14
+#  parameters:
15
+#    cmd: bash deploy.sh
16
+#    timeout: 42
17
+## Task is applied for all roles
18
+#- role: '*'
19
+#  stage: pre_deployment
20
+#  type: shell
21
+#  parameters:
22
+#    cmd: echo all > /tmp/plugin.all
23
+#    timeout: 42
24
+## "reboot" task reboots the nodes and waits until they get back online
25
+## - role: '*'
26
+##   stage: pre_deployment
27
+##   type: reboot
28
+##   parameters:
29
+##     timeout: 600

Loading…
Cancel
Save