aboutsummaryrefslogtreecommitdiffstats
path: root/docker/services/aodh-notifier.yaml
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-04-13 13:46:31 +0000
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-04-18 11:20:06 +0300
commite81ddeb685f494bfcfa592212fe8d44c9cc55862 (patch)
treef993c140cf9aca032cd7f78fd77638a09a4321bf /docker/services/aodh-notifier.yaml
parent29545646feafeb1c5eef5fd3ae096625834e852a (diff)
Introduce common resources for docker templates
This enables common resources that the docker templates might need. The initial resource only is common volumes, and two volumes are introduced (localtime and hosts). Change-Id: Ic55af32803f9493a61f9b57aff849bfc6187d992
Diffstat (limited to 'docker/services/aodh-notifier.yaml')
-rw-r--r--docker/services/aodh-notifier.yaml14
1 files changed, 10 insertions, 4 deletions
diff --git a/docker/services/aodh-notifier.yaml b/docker/services/aodh-notifier.yaml
index b4056603..dbe31b65 100644
--- a/docker/services/aodh-notifier.yaml
+++ b/docker/services/aodh-notifier.yaml
@@ -29,6 +29,9 @@ parameters:
resources:
+ ContainersCommon:
+ type: ./containers-common.yaml
+
AodhNotifierBase:
type: ../../puppet/services/aodh-notifier.yaml
properties:
@@ -67,10 +70,13 @@ outputs:
privileged: false
restart: always
volumes:
- - /var/lib/kolla/config_files/aodh-notifier.json:/var/lib/kolla/config_files/config.json:ro
- - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
- - /etc/hosts:/etc/hosts:ro
- - /etc/localtime:/etc/localtime:ro
+ yaql:
+ expression: $.data.common.concat($.data.service)
+ data:
+ common: {get_attr: [ContainersCommon, volumes]}
+ service:
+ - /var/lib/kolla/config_files/aodh-notifier.json:/var/lib/kolla/config_files/config.json:ro
+ - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
upgrade_tasks: