Add support for custom Gnocchi configuration

Change-Id: I06c07108693766fd436a60a39f270c116931941e
Story: 2005810
Task: 33550
This commit is contained in:
Pierre Riteau 2019-05-31 16:29:54 +01:00
parent 4daebe5c8c
commit 603527c215
8 changed files with 35 additions and 0 deletions

View File

@ -104,6 +104,7 @@
- { name: cinder, file: cinder.conf }
- { name: designate, file: designate.conf }
- { name: glance, file: glance.conf }
- { name: gnocchi, file: gnocchi.conf }
- { name: grafana, file: grafana.ini }
- { name: heat, file: heat.conf }
- { name: inspector, file: ironic-inspector.conf }
@ -209,6 +210,7 @@
kolla_extra_cinder: "{{ kolla_extra_config.cinder | default }}"
kolla_extra_designate: "{{ kolla_extra_config.designate | default }}"
kolla_extra_glance: "{{ kolla_extra_config.glance | default }}"
kolla_extra_gnocchi: "{{ kolla_extra_config.gnocchi | default }}"
kolla_extra_grafana: "{{ kolla_extra_config.grafana | default }}"
kolla_extra_heat: "{{ kolla_extra_config.heat | default }}"
kolla_extra_inspector: "{{ kolla_extra_config.inspector | default }}"

View File

@ -48,6 +48,15 @@ kolla_enable_glance:
# glance-registry.conf.
kolla_extra_glance:
###############################################################################
# Gnocchi configuration.
# Whether to enable Gnocchi.
kolla_enable_gnocchi:
# Free form extra configuration to append to gnocchi.conf.
kolla_extra_gnocchi:
###############################################################################
# Grafana configuration.

View File

@ -30,6 +30,10 @@ provisioner:
kolla_extra_glance: |
[extra-glance.conf]
foo=bar
kolla_enable_gnocchi: true
kolla_extra_gnocchi: |
[extra-gnocchi.conf]
foo=bar
kolla_enable_grafana: true
kolla_extra_grafana: |
[extra-grafana.ini]

View File

@ -18,6 +18,7 @@
- { src: designate.conf.j2, dest: designate.conf, enabled: "{{ kolla_enable_designate }}" }
- { src: galera.cnf.j2, dest: galera.cnf, enabled: "{{ kolla_enable_mariadb }}" }
- { src: glance.conf.j2, dest: glance.conf, enabled: "{{ kolla_enable_glance }}" }
- { src: gnocchi.conf.j2, dest: gnocchi.conf, enabled: "{{ kolla_enable_gnocchi }}" }
- { src: grafana.ini.j2, dest: grafana.ini, enabled: "{{ kolla_enable_grafana }}" }
- { src: heat.conf.j2, dest: heat.conf, enabled: "{{ kolla_enable_heat }}" }
- { src: ironic.conf.j2, dest: ironic.conf, enabled: "{{ kolla_enable_ironic }}" }

View File

@ -0,0 +1,9 @@
# {{ ansible_managed }}
{% if kolla_extra_gnocchi %}
#######################
# Extra configuration
#######################
{{ kolla_extra_gnocchi }}
{% endif %}

View File

@ -49,6 +49,11 @@ kolla_openstack_custom_config:
dest: "{{ kolla_node_custom_config_path }}/glance"
patterns: "*"
enabled: "{{ kolla_enable_glance }}"
# Gnocchi.
- src: "{{ kolla_extra_config_path }}/gnocchi"
dest: "{{ kolla_node_custom_config_path }}/gnocchi"
patterns: "*"
enabled: "{{ kolla_enable_gnocchi }}"
# Grafana.
- src: "{{ kolla_extra_config_path }}/grafana"
dest: "{{ kolla_node_custom_config_path }}/grafana"

View File

@ -161,6 +161,8 @@ which files are supported.
``fluentd/output`` Fluentd output configuration.
``glance.conf`` Glance configuration.
``glance/*`` Extended Glance configuration.
``gnocchi.conf`` Gnocchi configuration.
``gnocchi/*`` Extended Gnocchi configuration.
``grafana/*`` Extended Grafana configuration.
``haproxy/*`` HAProxy configuration.
``heat.conf`` Heat configuration.

View File

@ -0,0 +1,3 @@
---
features:
- Adds support for custom Gnocchi configuration.