From 53d2b7eeb6dab921af5d2cbc050cbdc087f39c7c Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Thu, 20 Jun 2013 10:20:22 -0700 Subject: [PATCH] glance::client was not installing the correct package The actually glance executable is not installed as a part of the python-glance package, it is installed in the python-glanceclient pakcage. Going through the RDO packages, I do not even see a package called python-glance. Change-Id: I35c71fc5da595a695b10cb2ecc5ad27f5131bac8 --- manifests/client.pp | 2 +- manifests/params.pp | 2 +- spec/classes/glance_client_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/client.pp b/manifests/client.pp index 094f803f..f3175389 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -10,7 +10,7 @@ class glance::client ( include glance::params - package { 'python-glance': + package { 'python-glanceclient': name => $::glance::params::client_package_name, ensure => $ensure, } diff --git a/manifests/params.pp b/manifests/params.pp index 72f2636e..066d4b0e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -2,7 +2,7 @@ # should be considered to be constant class glance::params { - $client_package_name = 'python-glance' + $client_package_name = 'python-glanceclient' case $::osfamily { 'RedHat': { diff --git a/spec/classes/glance_client_spec.rb b/spec/classes/glance_client_spec.rb index e44aeb37..3c9a4a27 100644 --- a/spec/classes/glance_client_spec.rb +++ b/spec/classes/glance_client_spec.rb @@ -4,8 +4,8 @@ describe 'glance::client' do shared_examples 'glance client' do it { should include_class('glance::params') } - it { should contain_package('python-glance').with( - :name => 'python-glance', + it { should contain_package('python-glanceclient').with( + :name => 'python-glanceclient', :ensure => 'present' ) }