Support configuration of Fluentd output plugins

Drop configuration files into ${KAYOBE_CONFIG_PATH}/fluentd/output/*.conf.
This commit is contained in:
Mark Goddard 2017-07-11 17:45:16 +01:00
parent 2693269955
commit 26ea28ab9c
3 changed files with 17 additions and 0 deletions

View File

@ -98,3 +98,4 @@
kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}"
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}"
kolla_extra_fluentd_output_path: "{{ kayobe_config_path }}/kolla/config/fluentd/output"

View File

@ -2,6 +2,12 @@
# Directory where Kolla custom configuration files will be installed.
kolla_node_custom_config_path:
###############################################################################
# Fluentd configuration.
# Path to extra Fluentd output configuration files.
kolla_extra_fluentd_output_path:
###############################################################################
# Glance configuration.

View File

@ -5,6 +5,7 @@
state: directory
mode: 0750
with_items:
- { name: fluentd/output, enabled: "{{ kolla_extra_fluentd_output_path != None }}" }
- { name: ironic, enabled: "{{ kolla_enable_ironic }}" }
- { name: neutron, enabled: "{{ kolla_enable_neutron }}" }
- { name: swift, enabled: "{{ kolla_enable_swift }}" }
@ -28,6 +29,15 @@
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
when: "{{ item.enabled | bool }}"
- name: Ensure extra fluentd output configuration files exist
template:
src: "{{ item }}"
dest: "{{ kolla_node_custom_config_path }}/fluentd/output/{{ item | basename }}"
mode: 0640
with_fileglob:
- "{{ kolla_extra_fluentd_output_path }}/*.conf"
when: "{{ kolla_extra_fluentd_output_path != None }}"
- name: Ensure the ironic inspector kernel and ramdisk exist
get_url:
url: "{{ item.url }}"