Support configuration of Fluentd output plugins
Drop configuration files into ${KAYOBE_CONFIG_PATH}/fluentd/output/*.conf.
This commit is contained in:
parent
2693269955
commit
26ea28ab9c
@ -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"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user