Adding the ability to specify https for the public endpoint

This commit is contained in:
Derek Higgins 2012-11-21 12:57:07 -05:00
parent aaa8e3586c
commit 4510d84810

View File

@ -25,7 +25,8 @@ class keystone::endpoint(
$internal_address = '127.0.0.1',
$public_port = '5000',
$admin_port = '35357',
$region = 'RegionOne'
$region = 'RegionOne',
$public_protocol = 'http'
) {
keystone_service { 'keystone':
ensure => present,
@ -34,7 +35,7 @@ class keystone::endpoint(
}
keystone_endpoint { "${region}/keystone":
ensure => present,
public_url => "http://${public_address}:${public_port}/v2.0",
public_url => "${public_protocol}://${public_address}:${public_port}/v2.0",
admin_url => "http://${admin_address}:${admin_port}/v2.0",
internal_url => "http://${internal_address}:${public_port}/v2.0",
region => $region,