Allow metadata_host to be different to LB VIP

Changes metadata_host to a var, which defaults to "internal_lb_vip" but
can be changed.
This allows you to set a metadata_host that is not the internal_lb_vip.

Change-Id: Ic1c9d40aedb24596fe2a24f236c49a79028102b8
This commit is contained in:
Andy McCrae 2016-05-25 18:50:56 +01:00
parent 1a40c1c8d3
commit 01014606ae
2 changed files with 2 additions and 1 deletions

View File

@ -188,6 +188,7 @@ nova_novncproxy_vnc_keymap: en-us
## Nova metadata
nova_metadata_proxy_enabled: True
nova_metadata_host: "{{ internal_lb_vip_address }}"
nova_metadata_port: 8775
nova_metadata_program_name: nova-api-metadata

View File

@ -83,7 +83,7 @@ rpc_conn_pool_size = {{ nova_rpc_conn_pool_size }}
rpc_response_timeout = {{ nova_rpc_response_timeout }}
# Metadata
metadata_host = {{ internal_lb_vip_address }}
metadata_host = {{ nova_metadata_host }}
metadata_port = {{ nova_metadata_port }}
metadata_workers = {{ nova_metadata_workers | default(api_threads) }}