Skip to content
Snippets Groups Projects
Commit 1d36adcb authored by Xinliang Liu's avatar Xinliang Liu
Browse files

Make fluentd enabled configurable


Although there is an option "enable_fluentd", but there are still
some tasks that make fluentd not configurable.

Change-Id: Ic0a9deb36fce154022925d26411e01a8ffe18b50
Signed-off-by: default avatarXinliang Liu <xinliang.liu@linaro.org>
parent c609633a
No related branches found
No related tags found
No related merge requests found
...@@ -80,12 +80,16 @@ ...@@ -80,12 +80,16 @@
pattern: "*.conf" pattern: "*.conf"
run_once: True run_once: True
register: find_custom_fluentd_outputs register: find_custom_fluentd_outputs
when:
- enable_fluentd | bool
- name: Copying over custom fluentd output config files - name: Copying over custom fluentd output config files
template: template:
src: "{{ item.path }}" src: "{{ item.path }}"
dest: "{{ node_config_directory }}/fluentd/output/{{ item.path | basename }}" dest: "{{ node_config_directory }}/fluentd/output/{{ item.path | basename }}"
register: fluentd_output_custom register: fluentd_output_custom
when:
- enable_fluentd | bool
with_items: "{{ find_custom_fluentd_outputs.files }}" with_items: "{{ find_custom_fluentd_outputs.files }}"
notify: notify:
- Restart fluentd container - Restart fluentd container
......
...@@ -4,4 +4,6 @@ ...@@ -4,4 +4,6 @@
action: "pull_image" action: "pull_image"
common_options: "{{ docker_common_options }}" common_options: "{{ docker_common_options }}"
image: "{{ item.value.image }}" image: "{{ item.value.image }}"
when:
- item.value.enabled | bool
with_dict: "{{ common_services }}" with_dict: "{{ common_services }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment