diff options
author | 2021-06-10 12:04:23 +0100 | |
---|---|---|
committer | 2021-08-26 21:05:50 +0100 | |
commit | 44d5d79394e29d783a7ef73ba742052d97fad124 (patch) | |
tree | 4b638f048fb97244e80d73df937ba266e1f339e8 /docker/ansible/roles/config_files/tasks/rdt.yml | |
parent | dfb13929a9b878c0d41b88b53c62ff56fe8b6856 (diff) |
[ansible] Use collectd_config for virt and rdt
Only one of virt and intel_rdt can be enabled at a time, and the
existing checks are based on the existance of a {rdt,virt}.conf file to
determine whether the other plugin is enabled.
This check needed updating, and is now based on whether the other plugin
is in the collectd_plugins value.
Signed-off-by: Emma Foley <efoley@redhat.com>
Change-Id: I175d60111bf133965e1ecbf3764cb12a25356576
Diffstat (limited to 'docker/ansible/roles/config_files/tasks/rdt.yml')
-rw-r--r-- | docker/ansible/roles/config_files/tasks/rdt.yml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docker/ansible/roles/config_files/tasks/rdt.yml b/docker/ansible/roles/config_files/tasks/rdt.yml index bad67b78..f0a46261 100644 --- a/docker/ansible/roles/config_files/tasks/rdt.yml +++ b/docker/ansible/roles/config_files/tasks/rdt.yml @@ -1,4 +1,4 @@ -#Copyright 2018 OPNFV and Intel Corporation +# Copyright 2018-21 Anuket, Intel Corporation and others # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,9 +29,8 @@ - rdt - name: enable rdt plugin - template: - src: rdt.conf.j2 - dest: "{{ config_file_dir }}/rdt.conf" + set_fact: + collectd_plugins: "{{ collectd_plugins | union(['intel_rdt']) | unique }}" when: (rdt_result is succeeded) and (virt_file.stat.exists == False) tags: - rdt |