diff --git a/examples/fuel_plugin_example_v4/tasks.yaml b/examples/fuel_plugin_example_v4/tasks.yaml index f0ddab8..657bc5e 100644 --- a/examples/fuel_plugin_example_v4/tasks.yaml +++ b/examples/fuel_plugin_example_v4/tasks.yaml @@ -1,46 +1,49 @@ # WARNING: `tasks.yaml` will be deprecated in further releases. # Please, use `deployment_tasks.yaml` to describe tasks instead. -# This tasks will be applied on controller nodes -- role: ['primary-controller', 'controller'] - stage: post_deployment - type: shell - parameters: - cmd: bash deploy.sh - timeout: 42 +# This file is left only as an example of the old tasks format what you could +# meet during plugins development and support. -- role: '*' - stage: pre_deployment/100 - type: shell - parameters: - cmd: echo all > /tmp/plugin+100.all - timeout: 42 - -- role: '*' - stage: pre_deployment/+101.0 - type: shell - parameters: - cmd: echo all > /tmp/plugin+100.0.all - timeout: 42 - -- role: '*' - stage: pre_deployment/-100 - type: shell - parameters: - cmd: echo all > /tmp/plugin-100.all - timeout: 42 - -- role: [compute] - stage: pre_deployment/-101 - type: puppet - parameters: - puppet_manifest: "deploy.pp" - puppet_modules: "." - timeout: 3600 - retries: 2 - -- role: '*' - stage: pre_deployment - type: reboot - parameters: - timeout: 600 +## This tasks will be applied on controller nodes +#- role: ['primary-controller', 'controller'] +# stage: post_deployment +# type: shell +# parameters: +# cmd: bash deploy.sh +# timeout: 42 +# +#- role: '*' +# stage: pre_deployment/100 +# type: shell +# parameters: +# cmd: echo all > /tmp/plugin+100.all +# timeout: 42 +# +#- role: '*' +# stage: pre_deployment/+101.0 +# type: shell +# parameters: +# cmd: echo all > /tmp/plugin+100.0.all +# timeout: 42 +# +#- role: '*' +# stage: pre_deployment/-100 +# type: shell +# parameters: +# cmd: echo all > /tmp/plugin-100.all +# timeout: 42 +# +#- role: [compute] +# stage: pre_deployment/-101 +# type: puppet +# parameters: +# puppet_manifest: "deploy.pp" +# puppet_modules: "." +# timeout: 3600 +# retries: 2 +# +#- role: '*' +# stage: pre_deployment +# type: reboot +# parameters: +# timeout: 600 diff --git a/fuel_plugin_builder/templates/v4/plugin_data/tasks.yaml b/fuel_plugin_builder/templates/v4/plugin_data/tasks.yaml index f051697..3ffb6d0 100644 --- a/fuel_plugin_builder/templates/v4/plugin_data/tasks.yaml +++ b/fuel_plugin_builder/templates/v4/plugin_data/tasks.yaml @@ -1,26 +1,29 @@ # WARNING: `tasks.yaml` will be deprecated in further releases. # Please, use `deployment_tasks.yaml` to describe tasks instead. -# This tasks will be applied on controller nodes, -# here you can also specify several roles, for example -# ['cinder', 'compute'] will be applied only on -# cinder and compute nodes -- role: ['controller'] - stage: post_deployment - type: shell - parameters: - cmd: bash deploy.sh - timeout: 42 -# Task is applied for all roles -- role: '*' - stage: pre_deployment - type: shell - parameters: - cmd: echo all > /tmp/plugin.all - timeout: 42 -# "reboot" task reboots the nodes and waits until they get back online -# - role: '*' -# stage: pre_deployment -# type: reboot -# parameters: -# timeout: 600 +# This file is left only as an example of the old tasks format what you could +# meet during plugins development and support. + +## This tasks will be applied on controller nodes, +## here you can also specify several roles, for example +## ['cinder', 'compute'] will be applied only on +## cinder and compute nodes +#- role: ['controller'] +# stage: post_deployment +# type: shell +# parameters: +# cmd: bash deploy.sh +# timeout: 42 +## Task is applied for all roles +#- role: '*' +# stage: pre_deployment +# type: shell +# parameters: +# cmd: echo all > /tmp/plugin.all +# timeout: 42 +## "reboot" task reboots the nodes and waits until they get back online +## - role: '*' +## stage: pre_deployment +## type: reboot +## parameters: +## timeout: 600