Add support for configuring InfluxDB
Required to use a vintage version of InfluxDB with a different config file format. Task: 6700 Story: 2001627 Change-Id: I91353bc70b1d2a11827ead1dee43aa19e91dc1bb
This commit is contained in:
parent
e45b5acd95
commit
e7b51de460
@ -140,6 +140,8 @@ overcloud_container_image_regex_map:
|
||||
enabled: "{{ kolla_enable_heat | bool }}"
|
||||
- regex: horizon
|
||||
enabled: "{{ kolla_enable_horizon | bool }}"
|
||||
- regex: influxdb
|
||||
enabled: "{{ kolla_enable_influxdb | bool }}"
|
||||
- regex: ironic
|
||||
enabled: "{{ kolla_enable_ironic | bool }}"
|
||||
- regex: iscsid
|
||||
@ -302,6 +304,7 @@ kolla_enable_gnocchi: "no"
|
||||
kolla_enable_haproxy: "yes"
|
||||
kolla_enable_heat: "yes"
|
||||
kolla_enable_horizon: "yes"
|
||||
kolla_enable_influxdb: "no"
|
||||
kolla_enable_ironic: "yes"
|
||||
kolla_enable_kafka: "no"
|
||||
kolla_enable_kibana: "{{ 'yes' if kolla_enable_central_logging | bool else 'no' }}"
|
||||
|
@ -104,6 +104,7 @@
|
||||
- { name: glance, file: glance.conf }
|
||||
- { name: grafana, file: grafana.ini }
|
||||
- { name: heat, file: heat.conf }
|
||||
- { name: influxdb, file: influxdb.conf }
|
||||
- { name: inspector, file: ironic-inspector.conf }
|
||||
- { name: ironic, file: ironic.conf }
|
||||
- { name: ironic_dnsmasq, file: ironic/ironic-dnsmasq.conf }
|
||||
@ -207,6 +208,7 @@
|
||||
kolla_extra_grafana: "{{ kolla_extra_config.grafana | default }}"
|
||||
kolla_extra_heat: "{{ kolla_extra_config.heat | default }}"
|
||||
kolla_extra_inspector: "{{ kolla_extra_config.inspector | default }}"
|
||||
kolla_extra_influxdb: "{{ kolla_extra_config.influxdb | default }}"
|
||||
kolla_extra_ironic: "{{ kolla_extra_config.ironic | default }}"
|
||||
kolla_extra_ironic_dnsmasq: "{{ kolla_extra_config.ironic_dnsmasq | default }}"
|
||||
kolla_extra_kafka: "{{ kolla_extra_config.kafka | default }}"
|
||||
|
@ -117,6 +117,7 @@
|
||||
- enable_glance
|
||||
- enable_ironic
|
||||
- enable_kafka
|
||||
- enable_influxdb
|
||||
- enable_neutron
|
||||
- enable_nova
|
||||
- enable_zookeeper
|
||||
|
@ -69,6 +69,15 @@ kolla_extra_heat:
|
||||
# Whether to enable Horizon.
|
||||
kolla_enable_horizon:
|
||||
|
||||
###############################################################################
|
||||
# InfluxDB configuration.
|
||||
|
||||
# Whether to enable InfluxDB.
|
||||
kolla_enable_influxdb:
|
||||
|
||||
# Free form extra configuration to append to influxdb.conf.
|
||||
kolla_extra_influxdb:
|
||||
|
||||
###############################################################################
|
||||
# Ironic configuration.
|
||||
|
||||
|
@ -44,6 +44,7 @@ def test_service_config_directory(host, path):
|
||||
'grafana',
|
||||
'heat',
|
||||
'horizon',
|
||||
'influxdb',
|
||||
'ironic',
|
||||
'kafka',
|
||||
'magnum',
|
||||
|
@ -41,6 +41,10 @@ provisioner:
|
||||
[extra-heat.conf]
|
||||
foo=bar
|
||||
kolla_enable_horizon: True
|
||||
kolla_enable_influxdb: True
|
||||
kolla_extra_influxdb: |
|
||||
[extra-influxdb.conf]
|
||||
foo=bar
|
||||
kolla_enable_ironic: True
|
||||
kolla_extra_ironic: |
|
||||
[extra-ironic.conf]
|
||||
|
@ -36,6 +36,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
||||
'grafana',
|
||||
'heat',
|
||||
'horizon',
|
||||
'influxdb',
|
||||
'ironic',
|
||||
'kafka',
|
||||
'keystone',
|
||||
@ -60,6 +61,7 @@ def test_service_config_directory(host, path):
|
||||
'glance.conf',
|
||||
'grafana.ini',
|
||||
'heat.conf',
|
||||
'influxdb.conf',
|
||||
'ironic.conf',
|
||||
'ironic-inspector.conf',
|
||||
'kafka.server.properties',
|
||||
|
@ -19,6 +19,7 @@
|
||||
- { src: glance.conf.j2, dest: glance.conf, enabled: "{{ kolla_enable_glance }}" }
|
||||
- { src: grafana.ini.j2, dest: grafana.ini, enabled: "{{ kolla_enable_grafana }}" }
|
||||
- { src: heat.conf.j2, dest: heat.conf, enabled: "{{ kolla_enable_heat }}" }
|
||||
- { src: influxdb.conf.j2, dest: influxdb.conf, enabled: "{{ kolla_enable_influxdb }}" }
|
||||
- { src: ironic.conf.j2, dest: ironic.conf, enabled: "{{ kolla_enable_ironic }}" }
|
||||
- { src: ironic-dnsmasq.conf.j2, dest: ironic/ironic-dnsmasq.conf, enabled: "{{ kolla_enable_ironic }}" }
|
||||
- { src: ironic-inspector.conf.j2, dest: ironic-inspector.conf, enabled: "{{ kolla_enable_ironic }}" }
|
||||
|
9
ansible/roles/kolla-openstack/templates/influxdb.conf.j2
Normal file
9
ansible/roles/kolla-openstack/templates/influxdb.conf.j2
Normal file
@ -0,0 +1,9 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% if kolla_extra_influxdb %}
|
||||
#######################
|
||||
# Extra configuration
|
||||
#######################
|
||||
|
||||
{{ kolla_extra_influxdb }}
|
||||
{% endif %}
|
@ -54,6 +54,11 @@ kolla_openstack_custom_config:
|
||||
dest: "{{ kolla_node_custom_config_path }}/horizon"
|
||||
patterns: "*"
|
||||
enabled: "{{ kolla_enable_horizon }}"
|
||||
# InfluxDB.
|
||||
- src: "{{ kolla_extra_config_path }}/influxdb"
|
||||
dest: "{{ kolla_node_custom_config_path }}/influxdb"
|
||||
patterns: "*"
|
||||
enabled: "{{ kolla_enable_influxdb }}"
|
||||
# Ironic.
|
||||
- src: "{{ kolla_extra_config_path }}/ironic"
|
||||
dest: "{{ kolla_node_custom_config_path }}/ironic"
|
||||
|
Loading…
Reference in New Issue
Block a user