Merge "Allow gnocchi services to use independent hostnames"
This commit is contained in:
commit
38d7e40625
ansible
group_vars
roles/gnocchi
@ -229,7 +229,10 @@ glance_external_fqdn: "{{ kolla_external_fqdn }}"
|
|||||||
glance_api_port: "9292"
|
glance_api_port: "9292"
|
||||||
glance_api_listen_port: "{{ glance_api_port }}"
|
glance_api_listen_port: "{{ glance_api_port }}"
|
||||||
|
|
||||||
|
gnocchi_internal_fqdn: "{{ kolla_internal_fqdn }}"
|
||||||
|
gnocchi_external_fqdn: "{{ kolla_external_fqdn }}"
|
||||||
gnocchi_api_port: "8041"
|
gnocchi_api_port: "8041"
|
||||||
|
gnocchi_api_listen_port: "{{ gnocchi_api_port }}"
|
||||||
|
|
||||||
grafana_server_port: "3000"
|
grafana_server_port: "3000"
|
||||||
|
|
||||||
|
@ -18,12 +18,12 @@ gnocchi_services:
|
|||||||
enabled: "{{ enable_gnocchi }}"
|
enabled: "{{ enable_gnocchi }}"
|
||||||
mode: "http"
|
mode: "http"
|
||||||
external: false
|
external: false
|
||||||
port: "{{ gnocchi_api_port }}"
|
port: "{{ gnocchi_api_listen_port }}"
|
||||||
gnocchi_api_external:
|
gnocchi_api_external:
|
||||||
enabled: "{{ enable_gnocchi }}"
|
enabled: "{{ enable_gnocchi }}"
|
||||||
mode: "http"
|
mode: "http"
|
||||||
external: true
|
external: true
|
||||||
port: "{{ gnocchi_api_port }}"
|
port: "{{ gnocchi_api_listen_port }}"
|
||||||
gnocchi-metricd:
|
gnocchi-metricd:
|
||||||
container_name: gnocchi_metricd
|
container_name: gnocchi_metricd
|
||||||
group: gnocchi-metricd
|
group: gnocchi-metricd
|
||||||
@ -110,9 +110,9 @@ gnocchi_statsd_dimensions: "{{ default_container_dimensions }}"
|
|||||||
####################
|
####################
|
||||||
# OpenStack
|
# OpenStack
|
||||||
####################
|
####################
|
||||||
gnocchi_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ gnocchi_api_port }}"
|
gnocchi_admin_endpoint: "{{ admin_protocol }}://{{ gnocchi_internal_fqdn }}:{{ gnocchi_api_port }}"
|
||||||
gnocchi_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ gnocchi_api_port }}"
|
gnocchi_internal_endpoint: "{{ internal_protocol }}://{{ gnocchi_internal_fqdn }}:{{ gnocchi_api_port }}"
|
||||||
gnocchi_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ gnocchi_api_port }}"
|
gnocchi_public_endpoint: "{{ public_protocol }}://{{ gnocchi_external_fqdn }}:{{ gnocchi_api_port }}"
|
||||||
|
|
||||||
gnocchi_logging_debug: "{{ openstack_logging_debug }}"
|
gnocchi_logging_debug: "{{ openstack_logging_debug }}"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
- name: Checking free port for Gnocchi API
|
- name: Checking free port for Gnocchi API
|
||||||
wait_for:
|
wait_for:
|
||||||
host: "{{ api_interface_address }}"
|
host: "{{ api_interface_address }}"
|
||||||
port: "{{ gnocchi_api_port }}"
|
port: "{{ gnocchi_api_listen_port }}"
|
||||||
connect_timeout: 1
|
connect_timeout: 1
|
||||||
timeout: 1
|
timeout: 1
|
||||||
state: stopped
|
state: stopped
|
||||||
|
@ -13,7 +13,7 @@ log_file = /var/log/kolla/gnocchi/gnocchi-api.log
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
port = {{ gnocchi_api_port }}
|
port = {{ gnocchi_api_listen_port }}
|
||||||
host = {{ api_interface_address }}
|
host = {{ api_interface_address }}
|
||||||
middlewares = keystonemiddleware.auth_token.AuthProtocol
|
middlewares = keystonemiddleware.auth_token.AuthProtocol
|
||||||
auth_mode = keystone
|
auth_mode = keystone
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{% set python_path = '/usr/lib/python2.7/site-packages' if gnocchi_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
{% set python_path = '/usr/lib/python2.7/site-packages' if gnocchi_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
||||||
{% set wsgi_path = '/usr/bin' if gnocchi_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
|
{% set wsgi_path = '/usr/bin' if gnocchi_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
|
||||||
Listen {{ api_interface_address }}:{{ gnocchi_api_port }}
|
Listen {{ api_interface_address }}:{{ gnocchi_api_listen_port }}
|
||||||
|
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
ServerTokens Prod
|
ServerTokens Prod
|
||||||
TraceEnable off
|
TraceEnable off
|
||||||
|
|
||||||
<VirtualHost *:{{ gnocchi_api_port }}>
|
<VirtualHost *:{{ gnocchi_api_listen_port }}>
|
||||||
|
|
||||||
ErrorLog "/var/log/kolla/gnocchi/gnocchi-api-error.log"
|
ErrorLog "/var/log/kolla/gnocchi/gnocchi-api-error.log"
|
||||||
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user