Nova API endpoint versions

Default endpoint version should be 2.1.
Nova API v3 has been deprecated.

Change-Id: Ic622cd1ccde9d1dab487499614cf486cb0cdb4f7
(cherry picked from commit b076dcd6ca)
This commit is contained in:
Ricardo Noriega 2016-08-23 18:30:52 +02:00 committed by Alfredo Moralejo
parent 943a42282f
commit d99f3703ea
1 changed files with 7 additions and 9 deletions

View File

@ -1,16 +1,14 @@
$nova_protocol = 'http'
$nova_host = hiera('CONFIG_KEYSTONE_HOST_URL')
$nova_port = '8774'
$nova_url = "${nova_protocol}://${nova_host}:$nova_port/v2/%%(tenant_id)s"
$nova_url = "${nova_protocol}://${nova_host}:$nova_port/v2.1/%%(tenant_id)s"
$nova_v3_url = "${nova_protocol}://${nova_host}:$nova_port/v3"
class { '::nova::keystone::auth':
region => hiera('CONFIG_KEYSTONE_REGION'),
password => hiera('CONFIG_NOVA_KS_PW'),
public_url => $nova_url,
admin_url => $nova_url,
internal_url => $nova_url,
public_url_v3 => $nova_v3_url,
admin_url_v3 => $nova_v3_url,
internal_url_v3 => $nova_v3_url,
region => hiera('CONFIG_KEYSTONE_REGION'),
password => hiera('CONFIG_NOVA_KS_PW'),
public_url => $nova_url,
admin_url => $nova_url,
internal_url => $nova_url,
configure_endpoint_v3 => false,
}