Support customising Prometheus config

Kolla Ansible supports customising Prometheus config files.
This commit allows Kayobe to take advantage of that.

Story: 2005508
Task: 30617
Change-Id: I9fe28a658dc35adb5358d9a3a96bda9245404257
This commit is contained in:
Doug Szumski 2019-04-25 10:48:04 +00:00
parent a65511a3d8
commit 13350e3f56
9 changed files with 19 additions and 0 deletions
ansible/roles
kolla-ansible
kolla-openstack
defaults
molecule
default/tests
enable-everything
vars
etc/kayobe

@ -252,6 +252,7 @@ kolla_openstack_logging_debug:
#kolla_enable_neutron_qos:
#kolla_enable_neutron_agent_ha:
#kolla_enable_neutron_vpnaas:
#kolla_enable_prometheus:
#kolla_enable_rally:
#kolla_enable_sahara:
#kolla_enable_senlin:

@ -100,6 +100,7 @@
- enable_monasca
- enable_neutron
- enable_nova
- enable_prometheus
- enable_storm
- enable_zookeeper
- grafana_admin_username

@ -150,6 +150,7 @@
kolla_enable_octavia: True
kolla_enable_osprofiler: True
kolla_enable_panko: True
kolla_enable_prometheus: True
kolla_enable_rally: True
kolla_enable_searchlight: True
kolla_enable_sahara: True
@ -282,6 +283,7 @@
#enable_octavia: True
#enable_osprofiler: True
#enable_panko: True
#enable_prometheus: True
#enable_rally: True
#enable_sahara: True
#enable_searchlight: True

@ -374,6 +374,12 @@ kolla_extra_nova:
# Whether to enable Octavia.
kolla_enable_octavia:
###############################################################################
# Prometheus configuration.
# Whether to enable Prometheus.
kolla_enable_prometheus:
###############################################################################
# Sahara configuration.

@ -54,6 +54,7 @@ def test_service_config_directory(host, path):
'murano',
'neutron',
'nova',
'prometheus',
'sahara',
'storm',
'swift',

@ -86,6 +86,7 @@ provisioner:
kolla_extra_octavia: |
[extra-octavia.conf]
foo=bar
kolla_enable_prometheus: true
kolla_enable_sahara: true
kolla_extra_sahara: |
[extra-sahara.conf]

@ -48,6 +48,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'neutron',
'nova',
'octavia',
'prometheus',
'sahara',
'storm',
'swift',

@ -148,6 +148,11 @@ kolla_openstack_custom_config:
dest: "{{ kolla_node_custom_config_path }}/octavia"
patterns: "*"
enabled: "{{ kolla_enable_octavia }}"
# Prometheus config
- src: "{{ kolla_extra_config_path }}/prometheus"
dest: "{{ kolla_node_custom_config_path }}/prometheus"
patterns: "*"
enabled: "{{ kolla_enable_prometheus }}"
# Sahara.
- src: "{{ kolla_extra_config_path }}/sahara"
dest: "{{ kolla_node_custom_config_path }}/sahara"

@ -221,6 +221,7 @@
#kolla_enable_octavia:
#kolla_enable_osprofiler:
#kolla_enable_panko:
#kolla_enable_prometheus:
#kolla_enable_qdrouterd:
#kolla_enable_rally:
#kolla_enable_sahara: