aboutsummaryrefslogtreecommitdiffstats
path: root/common/services.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-21 16:47:21 +0000
committerGerrit Code Review <review@openstack.org>2017-09-21 16:47:21 +0000
commit0602e95351f3b402fa4fc17478061a000ecde5bd (patch)
tree9ab027e9e711487c1ff83da902abf5e1d05a36f7 /common/services.yaml
parent30574c7af2b64b3cd5656ae1b7864fac21180550 (diff)
parent10eed9c1ae1bfbf86361066736e3d17634770456 (diff)
Merge "Adds post_upgrade_tasks for any service post-upgrade ansible tasks" into stable/pike
Diffstat (limited to 'common/services.yaml')
-rw-r--r--common/services.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/services.yaml b/common/services.yaml
index a8186e43..b55a5c4a 100644
--- a/common/services.yaml
+++ b/common/services.yaml
@@ -193,6 +193,16 @@ resources:
expression: coalesce($.data, []).where($ != null).select($.get('upgrade_tasks')).where($ != null).flatten().distinct()
data: {get_attr: [ServiceChain, role_data]}
+ PostUpgradeTasks:
+ type: OS::Heat::Value
+ properties:
+ type: comma_delimited_list
+ value:
+ yaql:
+ # Note we use distinct() here to filter any identical tasks, e.g yum update for all services
+ expression: coalesce($.data, []).where($ != null).select($.get('post_upgrade_tasks')).where($ != null).flatten().distinct()
+ data: {get_attr: [ServiceChain, role_data]}
+
UpdateTasks:
type: OS::Heat::Value
properties:
@@ -263,6 +273,7 @@ outputs:
service_workflow_tasks: {get_attr: [ServiceWorkflowTasks, value]}
step_config: {get_attr: [PuppetStepConfig, value]}
upgrade_tasks: {get_attr: [UpgradeTasks, value]}
+ post_upgrade_tasks: {get_attr: [PostUpgradeTasks, value]}
update_tasks: {get_attr: [UpdateTasks, value]}
upgrade_batch_tasks: {get_attr: [UpgradeBatchTasks, value]}
service_metadata_settings: {get_attr: [ServiceServerMetadataHook, metadata]}