openstack-ansible-os_neutron/templates/metadata_agent.ini.j2
Jacky Hu f939caf5be Make nova metadata protocol configurable
If https is used as internal protocol, and nova_metdata_protocol is
not set accordingly. The service neutron_metadata_agent will raise a
BadStatusLine exception upon receiving metdata request from instances.

Change-Id: Iaf7bd6f444daf766ed7c43c31a02f67964aff50d
2017-04-23 02:17:43 +00:00

34 lines
1.1 KiB
Django/Jinja

# {{ ansible_managed }}
# General
[DEFAULT]
debug = {{ debug }}
# Neutron credentials for API access
auth_type = {{ neutron_keystone_auth_plugin }}
auth_url = {{ keystone_service_adminurl }}
auth_uri = {{ keystone_service_internaluri }}
auth_region = {{ keystone_service_region }}
project_domain_id = {{ neutron_service_project_domain_id }}
user_domain_id = {{ neutron_service_user_domain_id }}
project_name = {{ neutron_service_project_name }}
username = {{ neutron_service_user_name }}
password = {{ neutron_service_password }}
endpoint_type = adminURL
# Nova metadata service IP and port
nova_metadata_ip = {{ internal_lb_vip_address }}
nova_metadata_port = {{ nova_metadata_port }}
nova_metadata_protocol = {{ nova_metadata_protocol }}
nova_metadata_insecure = {{ nova_metadata_insecure }}
# Metadata proxy shared secret
metadata_proxy_shared_secret = {{ nova_metadata_proxy_secret }}
# Workers and backlog requests
metadata_workers = {{ neutron_metadata_workers | default(neutron_api_threads) }}
metadata_backlog = {{ neutron_metadata_backlog }}
# Caching
cache_url = memory://?default_ttl=5