From 68f7aecfeb85c5e875bdee2aef7118c4424c408f Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Wed, 21 Nov 2012 12:53:12 -0500 Subject: [PATCH] Adding the ability to specify https for the public endpoint --- manifests/keystone/auth.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/keystone/auth.pp b/manifests/keystone/auth.pp index 53f84f07..bf804eeb 100644 --- a/manifests/keystone/auth.pp +++ b/manifests/keystone/auth.pp @@ -25,7 +25,8 @@ class glance::keystone::auth( $internal_address = '127.0.0.1', $port = '9292', $region = 'RegionOne', - $tenant = 'services' + $tenant = 'services', + $public_protocol = 'http' ) { Keystone_user_role["${auth_name}@${tenant}"] ~> Service <| name == 'glance-registry' |> @@ -49,7 +50,7 @@ class glance::keystone::auth( if $configure_endpoint { keystone_endpoint { "${region}/$auth_name": ensure => present, - public_url => "http://${public_address}:${port}/v1", + public_url => "${public_protocol}://${public_address}:${port}/v1", admin_url => "http://${admin_address}:${port}/v1", internal_url => "http://${internal_address}:${port}/v1", }