identity: configure admin_endpoint URL

puppet-keystone use admin_endpoint in keystone.conf for getting a token
with a provider.
If the flag is not set, it will use HTTP and we need to be able to
dynamically configure this flag to allow using HTTPS.

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi 2014-06-25 10:09:57 +02:00
parent 4bf501856e
commit b36d44b088
2 changed files with 4 additions and 2 deletions

View File

@ -437,7 +437,8 @@ class cloud::identity (
public_port => $ks_keystone_public_port, public_port => $ks_keystone_public_port,
admin_port => $ks_keystone_admin_port, admin_port => $ks_keystone_admin_port,
token_driver => $token_driver, token_driver => $token_driver,
token_expiration => $ks_token_expiration token_expiration => $ks_token_expiration,
admin_endpoint => "${ks_keystone_admin_proto}://${ks_keystone_admin_host}:${ks_keystone_admin_port}/v2.0"
} }
keystone_config { keystone_config {

View File

@ -126,7 +126,8 @@ describe 'cloud::identity' do
:admin_port => '35357', :admin_port => '35357',
:token_expiration => '3600', :token_expiration => '3600',
:log_dir => false, :log_dir => false,
:log_file => false :log_file => false,
:admin_endpoint => 'https://10.0.0.1:35357/v2.0'
) )
should contain_keystone_config('ec2/driver').with('value' => 'keystone.contrib.ec2.backends.sql.Ec2') should contain_keystone_config('ec2/driver').with('value' => 'keystone.contrib.ec2.backends.sql.Ec2')
should contain_keystone_config('DEFAULT/log_file').with_ensure('absent') should contain_keystone_config('DEFAULT/log_file').with_ensure('absent')