Add support for custom CloudKitty configuration
Change-Id: I0c0589387da53458f41df280dff0179715448aaa Story: 2006292 Task: 36003
This commit is contained in:
parent
d1b51adb3d
commit
ffb7f96e16
@ -122,6 +122,8 @@ overcloud_container_image_regex_map:
|
|||||||
enabled: "{{ kolla_enable_ceph | bool }}"
|
enabled: "{{ kolla_enable_ceph | bool }}"
|
||||||
- regex: cinder
|
- regex: cinder
|
||||||
enabled: "{{ kolla_enable_cinder | bool }}"
|
enabled: "{{ kolla_enable_cinder | bool }}"
|
||||||
|
- regex: cloudkitty
|
||||||
|
enabled: "{{ kolla_enable_cloudkitty | bool }}"
|
||||||
- regex: collectd
|
- regex: collectd
|
||||||
enabled: "{{ kolla_enable_collectd | bool }}"
|
enabled: "{{ kolla_enable_collectd | bool }}"
|
||||||
- regex: cron
|
- regex: cron
|
||||||
@ -343,6 +345,7 @@ kolla_enable_ceilometer: "no"
|
|||||||
# on the host. Setting this to true will disable NTP on the host.
|
# on the host. Setting this to true will disable NTP on the host.
|
||||||
kolla_enable_chrony: "no"
|
kolla_enable_chrony: "no"
|
||||||
kolla_enable_cinder: "no"
|
kolla_enable_cinder: "no"
|
||||||
|
kolla_enable_cloudkitty: "no"
|
||||||
kolla_enable_collectd: "no"
|
kolla_enable_collectd: "no"
|
||||||
kolla_enable_designate: "no"
|
kolla_enable_designate: "no"
|
||||||
kolla_enable_elasticsearch: "{{ 'yes' if kolla_enable_central_logging | bool or kolla_enable_freezer | bool or kolla_enable_osprofiler | bool or kolla_enable_skydive | bool or kolla_enable_monasca | bool else 'no' }}"
|
kolla_enable_elasticsearch: "{{ 'yes' if kolla_enable_central_logging | bool or kolla_enable_freezer | bool or kolla_enable_osprofiler | bool or kolla_enable_skydive | bool or kolla_enable_monasca | bool else 'no' }}"
|
||||||
|
@ -106,6 +106,7 @@
|
|||||||
- { name: ceilometer, file: ceilometer.conf }
|
- { name: ceilometer, file: ceilometer.conf }
|
||||||
- { name: ceph, file: ceph.conf }
|
- { name: ceph, file: ceph.conf }
|
||||||
- { name: cinder, file: cinder.conf }
|
- { name: cinder, file: cinder.conf }
|
||||||
|
- { name: cloudkitty, file: cloudkitty.conf }
|
||||||
- { name: designate, file: designate.conf }
|
- { name: designate, file: designate.conf }
|
||||||
- { name: glance, file: glance.conf }
|
- { name: glance, file: glance.conf }
|
||||||
- { name: global, file: global.conf }
|
- { name: global, file: global.conf }
|
||||||
@ -215,6 +216,7 @@
|
|||||||
kolla_extra_ceilometer: "{{ kolla_extra_config.ceilometer | default }}"
|
kolla_extra_ceilometer: "{{ kolla_extra_config.ceilometer | default }}"
|
||||||
kolla_extra_ceph: "{{ kolla_extra_config.ceph | default }}"
|
kolla_extra_ceph: "{{ kolla_extra_config.ceph | default }}"
|
||||||
kolla_extra_cinder: "{{ kolla_extra_config.cinder | default }}"
|
kolla_extra_cinder: "{{ kolla_extra_config.cinder | default }}"
|
||||||
|
kolla_extra_cloudkitty: "{{ kolla_extra_config.cloudkitty | default }}"
|
||||||
kolla_extra_designate: "{{ kolla_extra_config.designate | default }}"
|
kolla_extra_designate: "{{ kolla_extra_config.designate | default }}"
|
||||||
kolla_extra_glance: "{{ kolla_extra_config.glance | default }}"
|
kolla_extra_glance: "{{ kolla_extra_config.glance | default }}"
|
||||||
kolla_extra_global: "{{ kolla_extra_config.global | default }}"
|
kolla_extra_global: "{{ kolla_extra_config.global | default }}"
|
||||||
|
@ -53,6 +53,15 @@ kolla_enable_cinder:
|
|||||||
# Free form extra configuration to append to cinder.conf.
|
# Free form extra configuration to append to cinder.conf.
|
||||||
kolla_extra_cinder:
|
kolla_extra_cinder:
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# CloudKitty configuration.
|
||||||
|
|
||||||
|
# Whether to enable CloudKitty.
|
||||||
|
kolla_enable_cloudkitty:
|
||||||
|
|
||||||
|
# Free form extra configuration to append to cloudkitty.conf.
|
||||||
|
kolla_extra_cloudkitty:
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# designate configuration.
|
# designate configuration.
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ def test_service_config_directory(host, path):
|
|||||||
'path',
|
'path',
|
||||||
['ceph',
|
['ceph',
|
||||||
'cinder',
|
'cinder',
|
||||||
|
'cloudkitty',
|
||||||
'designate',
|
'designate',
|
||||||
'glance',
|
'glance',
|
||||||
'grafana',
|
'grafana',
|
||||||
|
@ -30,6 +30,10 @@ provisioner:
|
|||||||
kolla_extra_cinder: |
|
kolla_extra_cinder: |
|
||||||
[extra-cinder.conf]
|
[extra-cinder.conf]
|
||||||
foo=bar
|
foo=bar
|
||||||
|
kolla_enable_cloudkitty: true
|
||||||
|
kolla_extra_cloudkitty: |
|
||||||
|
[extra-cloudkitty.conf]
|
||||||
|
foo=bar
|
||||||
kolla_enable_designate: true
|
kolla_enable_designate: true
|
||||||
kolla_extra_designate: |
|
kolla_extra_designate: |
|
||||||
[extra-designate.conf]
|
[extra-designate.conf]
|
||||||
|
@ -29,6 +29,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
'path',
|
'path',
|
||||||
['ceph',
|
['ceph',
|
||||||
'cinder',
|
'cinder',
|
||||||
|
'cloudkitty',
|
||||||
'designate',
|
'designate',
|
||||||
'fluentd/filter',
|
'fluentd/filter',
|
||||||
'fluentd/input',
|
'fluentd/input',
|
||||||
@ -62,6 +63,7 @@ def test_service_config_directory(host, path):
|
|||||||
'path',
|
'path',
|
||||||
['ceph.conf',
|
['ceph.conf',
|
||||||
'cinder.conf',
|
'cinder.conf',
|
||||||
|
'cloudkitty.conf',
|
||||||
'designate.conf',
|
'designate.conf',
|
||||||
'galera.cnf',
|
'galera.cnf',
|
||||||
'glance.conf',
|
'glance.conf',
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
- { src: ceilometer.conf.j2, dest: ceilometer.conf, enabled: "{{ kolla_enable_ceilometer }}" }
|
- { src: ceilometer.conf.j2, dest: ceilometer.conf, enabled: "{{ kolla_enable_ceilometer }}" }
|
||||||
- { src: ceph.conf.j2, dest: ceph.conf, enabled: "{{ kolla_enable_ceph }}" }
|
- { src: ceph.conf.j2, dest: ceph.conf, enabled: "{{ kolla_enable_ceph }}" }
|
||||||
- { src: cinder.conf.j2, dest: cinder.conf, enabled: "{{ kolla_enable_cinder }}" }
|
- { src: cinder.conf.j2, dest: cinder.conf, enabled: "{{ kolla_enable_cinder }}" }
|
||||||
|
- { src: cloudkitty.conf.j2, dest: cloudkitty.conf, enabled: "{{ kolla_enable_cloudkitty }}" }
|
||||||
- { src: designate.conf.j2, dest: designate.conf, enabled: "{{ kolla_enable_designate }}" }
|
- { src: designate.conf.j2, dest: designate.conf, enabled: "{{ kolla_enable_designate }}" }
|
||||||
- { src: galera.cnf.j2, dest: galera.cnf, enabled: "{{ kolla_enable_mariadb }}" }
|
- { src: galera.cnf.j2, dest: galera.cnf, enabled: "{{ kolla_enable_mariadb }}" }
|
||||||
- { src: glance.conf.j2, dest: glance.conf, enabled: "{{ kolla_enable_glance }}" }
|
- { src: glance.conf.j2, dest: glance.conf, enabled: "{{ kolla_enable_glance }}" }
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
{% if kolla_extra_cloudkitty %}
|
||||||
|
#######################
|
||||||
|
# Extra configuration
|
||||||
|
#######################
|
||||||
|
|
||||||
|
{{ kolla_extra_cloudkitty }}
|
||||||
|
{% endif %}
|
@ -34,6 +34,11 @@ kolla_openstack_custom_config:
|
|||||||
dest: "{{ kolla_node_custom_config_path }}/cinder"
|
dest: "{{ kolla_node_custom_config_path }}/cinder"
|
||||||
patterns: "*"
|
patterns: "*"
|
||||||
enabled: "{{ kolla_enable_cinder }}"
|
enabled: "{{ kolla_enable_cinder }}"
|
||||||
|
# CloudKitty.
|
||||||
|
- src: "{{ kolla_extra_config_path }}/cloudkitty"
|
||||||
|
dest: "{{ kolla_node_custom_config_path }}/cloudkitty"
|
||||||
|
patterns: "*"
|
||||||
|
enabled: "{{ kolla_enable_cloudkitty }}"
|
||||||
# Designate.
|
# Designate.
|
||||||
- src: "{{ kolla_extra_config_path }}/designate"
|
- src: "{{ kolla_extra_config_path }}/designate"
|
||||||
dest: "{{ kolla_node_custom_config_path }}/designate"
|
dest: "{{ kolla_node_custom_config_path }}/designate"
|
||||||
|
@ -159,6 +159,8 @@ which files are supported.
|
|||||||
``ceph/*`` Extended Ceph configuration.
|
``ceph/*`` Extended Ceph configuration.
|
||||||
``cinder.conf`` Cinder configuration.
|
``cinder.conf`` Cinder configuration.
|
||||||
``cinder/*`` Extended Cinder configuration.
|
``cinder/*`` Extended Cinder configuration.
|
||||||
|
``cloudkitty.conf`` CloudKitty configuration.
|
||||||
|
``cloudkitty/*`` Extended CloudKitty configuration.
|
||||||
``designate.conf`` Designate configuration.
|
``designate.conf`` Designate configuration.
|
||||||
``designate/*`` Extended Designate configuration.
|
``designate/*`` Extended Designate configuration.
|
||||||
``fluentd/filter`` Fluentd filter configuration.
|
``fluentd/filter`` Fluentd filter configuration.
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Adds support for custom CloudKitty configuration.
|
Loading…
Reference in New Issue
Block a user