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

Examples and templates are affected

Change-Id: I305d499abbd74bc1f3b0e9de60d85ef66764478e
Closes-Bug: #1619255
This commit is contained in:
Ilya Kutukov 2016-09-01 18:07:32 +03:00
parent e4bf931839
commit d6d8b0de6e
2 changed files with 71 additions and 65 deletions

View File

@ -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

View File

@ -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