aboutsummaryrefslogtreecommitdiffstats
path: root/docker/services/collectd.yaml
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2017-06-21 16:02:55 +0200
committerMartin André <m.andre@redhat.com>2017-07-10 11:13:25 +0200
commitcf18e865d14adc319b6c2dfafd650f32dad4d853 (patch)
tree86231cde72c4adb55d4e06e1a8f17836dea834de /docker/services/collectd.yaml
parent766de0cacb18171264d2a699ac48cacb8d35a152 (diff)
Copy only generated puppet files into the container
This solves a problem with bind-mounts when the containers are holding files descriptors open. At the same time this makes the template more robust to puppet changes since new config files will be available in the containers without needing to update the templates. Partial-Bug: #1698323 Change-Id: Ia4ad6d77387e3dc354cd131c2f9756939fb8f736
Diffstat (limited to 'docker/services/collectd.yaml')
-rw-r--r--docker/services/collectd.yaml9
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/services/collectd.yaml b/docker/services/collectd.yaml
index e6741156..0593e412 100644
--- a/docker/services/collectd.yaml
+++ b/docker/services/collectd.yaml
@@ -79,6 +79,11 @@ outputs:
kolla_config:
/var/lib/kolla/config_files/collectd.json:
command: /usr/sbin/collectd -f
+ config_files:
+ - source: "/var/lib/kolla/config_files/src/*"
+ dest: "/"
+ merge: true
+ preserve_properties: true
permissions:
- path: /var/log/collectd
owner: collectd:collectd
@@ -99,9 +104,7 @@ outputs:
-
- /var/run/docker.sock:/var/run/docker.sock:rw
- /var/lib/kolla/config_files/collectd.json:/var/lib/kolla/config_files/config.json:ro
- - /var/lib/config-data/collectd/etc/collectd.conf:/etc/collectd.conf:ro
- - /var/lib/config-data/collectd/etc/collectd.d:/etc/collectd.d:ro
- - /var/log/containers/collectd:/var/log/collectd:rw
+ - /var/lib/config-data/puppet-generated/collectd/:/var/lib/kolla/config_files/src:ro
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks: