Skip to content
Snippets Groups Projects
Commit 26ea28ab authored by Mark Goddard's avatar Mark Goddard
Browse files

Support configuration of Fluentd output plugins

Drop configuration files into ${KAYOBE_CONFIG_PATH}/fluentd/output/*.conf.
parent 26932699
No related branches found
No related tags found
No related merge requests found
...@@ -98,3 +98,4 @@ ...@@ -98,3 +98,4 @@
kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}" kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}"
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}" kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
kolla_extra_sahara: "{{ kolla_extra_config.sahara | 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 @@ ...@@ -2,6 +2,12 @@
# Directory where Kolla custom configuration files will be installed. # Directory where Kolla custom configuration files will be installed.
kolla_node_custom_config_path: kolla_node_custom_config_path:
###############################################################################
# Fluentd configuration.
# Path to extra Fluentd output configuration files.
kolla_extra_fluentd_output_path:
############################################################################### ###############################################################################
# Glance configuration. # Glance configuration.
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
state: directory state: directory
mode: 0750 mode: 0750
with_items: with_items:
- { name: fluentd/output, enabled: "{{ kolla_extra_fluentd_output_path != None }}" }
- { name: ironic, enabled: "{{ kolla_enable_ironic }}" } - { name: ironic, enabled: "{{ kolla_enable_ironic }}" }
- { name: neutron, enabled: "{{ kolla_enable_neutron }}" } - { name: neutron, enabled: "{{ kolla_enable_neutron }}" }
- { name: swift, enabled: "{{ kolla_enable_swift }}" } - { name: swift, enabled: "{{ kolla_enable_swift }}" }
...@@ -28,6 +29,15 @@ ...@@ -28,6 +29,15 @@
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" } - { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
when: "{{ item.enabled | bool }}" 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 - name: Ensure the ironic inspector kernel and ramdisk exist
get_url: get_url:
url: "{{ item.url }}" url: "{{ item.url }}"
......
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