diff options
author | Jiri Stransky <jistr@redhat.com> | 2017-03-09 14:47:12 +0100 |
---|---|---|
committer | Jiri Stransky <jistr@redhat.com> | 2017-03-13 11:01:06 +0100 |
commit | 6050809e5741842714167276bd4d3b6b3414609e (patch) | |
tree | b1e6cdf394f9332f5d3293b726f6d398cb47d702 /docker/services | |
parent | 5fb25c2c4a633638731f5725ddf5b6a397aabbf8 (diff) |
Tasks hook for preparing BM host for deploying containerized services
This implements a host_prep_tasks hook where we can specify Ansible
tasks to perform on the host before deploying containerized
services. The hook runs in a single step, the assumption is that we will
mostly use the hook for creating per-service directories on the host to
ensure we are able to mount them into the containers. (We cannot do this
operation via Puppet because all containerized services run their Puppet
within a config container, so Puppet doesn't have access to host's
filesystem.)
Change-Id: I7d8bac39e0cd422fd651eefe29f7d10941ab4a1a
Diffstat (limited to 'docker/services')
-rw-r--r-- | docker/services/services.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/services/services.yaml b/docker/services/services.yaml index 892da77c..84c56b5b 100644 --- a/docker/services/services.yaml +++ b/docker/services/services.yaml @@ -74,6 +74,11 @@ outputs: {get_attr: [ServiceChain, role_data, docker_config]} docker_puppet_tasks: {get_attr: [ServiceChain, role_data, docker_puppet_tasks]} + host_prep_tasks: + yaql: + # Note we use distinct() here to filter any identical tasks + expression: $.data.where($ != null).select($.get('host_prep_tasks')).where($ != null).flatten().distinct() + data: {get_attr: [ServiceChain, role_data]} upgrade_tasks: yaql: # Note we use distinct() here to filter any identical tasks, e.g yum update for all services |