Merge "Add support for custom Aodh configuration"
This commit is contained in:
commit
faf03dbf35
@ -104,6 +104,7 @@
|
|||||||
mime: False
|
mime: False
|
||||||
register: stat_result
|
register: stat_result
|
||||||
with_items:
|
with_items:
|
||||||
|
- { name: aodh, file: aodh.conf }
|
||||||
- { name: blazar, file: blazar.conf }
|
- { name: blazar, file: blazar.conf }
|
||||||
- { name: ceilometer, file: ceilometer.conf }
|
- { name: ceilometer, file: ceilometer.conf }
|
||||||
- { name: cinder, file: cinder.conf }
|
- { name: cinder, file: cinder.conf }
|
||||||
@ -212,6 +213,7 @@
|
|||||||
auth_type: none
|
auth_type: none
|
||||||
endpoint_override: "http://{% raw %}{{ api_interface_address }}{% endraw %}:{{ inspector_store_port }}"
|
endpoint_override: "http://{% raw %}{{ api_interface_address }}{% endraw %}:{{ inspector_store_port }}"
|
||||||
# Extra free-form user-provided configuration.
|
# Extra free-form user-provided configuration.
|
||||||
|
kolla_extra_aodh: "{{ kolla_extra_config.aodh | default }}"
|
||||||
kolla_extra_blazar: "{{ kolla_extra_config.blazar | default }}"
|
kolla_extra_blazar: "{{ kolla_extra_config.blazar | default }}"
|
||||||
kolla_extra_ceilometer: "{{ kolla_extra_config.ceilometer | default }}"
|
kolla_extra_ceilometer: "{{ kolla_extra_config.ceilometer | default }}"
|
||||||
kolla_extra_cinder: "{{ kolla_extra_config.cinder | default }}"
|
kolla_extra_cinder: "{{ kolla_extra_config.cinder | default }}"
|
||||||
|
@ -11,6 +11,15 @@ kolla_node_custom_config_path: /etc/kolla/config
|
|||||||
# Free form extra configuration to append to global.conf.
|
# Free form extra configuration to append to global.conf.
|
||||||
kolla_extra_global:
|
kolla_extra_global:
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Aodh configuration.
|
||||||
|
|
||||||
|
# Whether to enable Aodh.
|
||||||
|
kolla_enable_aodh:
|
||||||
|
|
||||||
|
# Free form extra configuration to append to aodh.conf.
|
||||||
|
kolla_extra_aodh:
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Barbican configuration.
|
# Barbican configuration.
|
||||||
|
|
||||||
|
@ -37,7 +37,8 @@ def test_service_config_directory(host, path):
|
|||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'path',
|
'path',
|
||||||
['cinder',
|
['aodh',
|
||||||
|
'cinder',
|
||||||
'cloudkitty',
|
'cloudkitty',
|
||||||
'designate',
|
'designate',
|
||||||
'glance',
|
'glance',
|
||||||
|
@ -14,6 +14,10 @@ provisioner:
|
|||||||
group_vars:
|
group_vars:
|
||||||
all:
|
all:
|
||||||
kolla_extra_config_path:
|
kolla_extra_config_path:
|
||||||
|
kolla_enable_aodh: true
|
||||||
|
kolla_extra_aodh: |
|
||||||
|
[extra-aodh.conf]
|
||||||
|
foo=bar
|
||||||
kolla_enable_blazar: true
|
kolla_enable_blazar: true
|
||||||
kolla_extra_blazar: |
|
kolla_extra_blazar: |
|
||||||
[extra-blazar.conf]
|
[extra-blazar.conf]
|
||||||
|
@ -27,7 +27,8 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'path',
|
'path',
|
||||||
['cinder',
|
['aodh',
|
||||||
|
'cinder',
|
||||||
'cloudkitty',
|
'cloudkitty',
|
||||||
'designate',
|
'designate',
|
||||||
'fluentd/filter',
|
'fluentd/filter',
|
||||||
@ -61,7 +62,8 @@ def test_service_config_directory(host, path):
|
|||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'path',
|
'path',
|
||||||
['cinder.conf',
|
['aodh.conf',
|
||||||
|
'cinder.conf',
|
||||||
'cloudkitty.conf',
|
'cloudkitty.conf',
|
||||||
'designate.conf',
|
'designate.conf',
|
||||||
'galera.cnf',
|
'galera.cnf',
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
dest: "{{ kolla_node_custom_config_path }}/{{ item.dest }}"
|
dest: "{{ kolla_node_custom_config_path }}/{{ item.dest }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
with_items:
|
with_items:
|
||||||
|
- { src: aodh.conf.j2, dest: aodh.conf, enabled: "{{ kolla_enable_aodh }}" }
|
||||||
- { src: blazar.conf.j2, dest: blazar.conf, enabled: "{{ kolla_enable_blazar }}" }
|
- { src: blazar.conf.j2, dest: blazar.conf, enabled: "{{ kolla_enable_blazar }}" }
|
||||||
- { src: ceilometer.conf.j2, dest: ceilometer.conf, enabled: "{{ kolla_enable_ceilometer }}" }
|
- { src: ceilometer.conf.j2, dest: ceilometer.conf, enabled: "{{ kolla_enable_ceilometer }}" }
|
||||||
- { src: cinder.conf.j2, dest: cinder.conf, enabled: "{{ kolla_enable_cinder }}" }
|
- { src: cinder.conf.j2, dest: cinder.conf, enabled: "{{ kolla_enable_cinder }}" }
|
||||||
|
10
ansible/roles/kolla-openstack/templates/aodh.conf.j2
Normal file
10
ansible/roles/kolla-openstack/templates/aodh.conf.j2
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
{% if kolla_extra_aodh %}
|
||||||
|
#######################
|
||||||
|
# Extra configuration
|
||||||
|
#######################
|
||||||
|
|
||||||
|
{{ kolla_extra_aodh }}
|
||||||
|
{% endif %}
|
||||||
|
|
@ -9,6 +9,11 @@
|
|||||||
# the destination, and will not be removed from the destination, even
|
# the destination, and will not be removed from the destination, even
|
||||||
# if disabled or unexpected.
|
# if disabled or unexpected.
|
||||||
kolla_openstack_custom_config:
|
kolla_openstack_custom_config:
|
||||||
|
# Aodh.
|
||||||
|
- src: "{{ kolla_extra_config_path }}/aodh"
|
||||||
|
dest: "{{ kolla_node_custom_config_path }}/aodh"
|
||||||
|
patterns: "*"
|
||||||
|
enabled: "{{ kolla_enable_aodh }}"
|
||||||
# Barbican.
|
# Barbican.
|
||||||
- src: "{{ kolla_extra_config_path }}/barbican"
|
- src: "{{ kolla_extra_config_path }}/barbican"
|
||||||
dest: "{{ kolla_node_custom_config_path }}/barbican"
|
dest: "{{ kolla_node_custom_config_path }}/barbican"
|
||||||
|
@ -502,6 +502,8 @@ which files are supported.
|
|||||||
=============================== =======================================================
|
=============================== =======================================================
|
||||||
File Purpose
|
File Purpose
|
||||||
=============================== =======================================================
|
=============================== =======================================================
|
||||||
|
``aodh.conf`` Aodh configuration.
|
||||||
|
``aodh/*`` Extended Aodh configuration.
|
||||||
``backup.my.cnf`` Mariabackup configuration.
|
``backup.my.cnf`` Mariabackup configuration.
|
||||||
``barbican/*`` Extended Barbican configuration.
|
``barbican/*`` Extended Barbican configuration.
|
||||||
``blazar.conf`` Blazar configuration.
|
``blazar.conf`` Blazar configuration.
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Adds support for custom Aodh configuration.
|
Loading…
Reference in New Issue
Block a user