From 7a57568d1bcaf8f582fdac431e06913430c632ff Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 7 Sep 2025 13:31:44 +0900 Subject: [PATCH] Use new openstackclient tag The new openstackclient tag was added so that we can get all resources about openstack CLI more easily. This adds this tag to cloudkittyclient because the package provides some sub-commands. Also make sure openstackclient is installed so that the 'openstack' command is available. Change-Id: I72aec8dd81d0470861d2019d0034bc76d6a75b8b Signed-off-by: Takashi Kajinami --- manifests/client.pp | 4 +++- spec/classes/cloudkitty_client_spec.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/client.pp b/manifests/client.pp index e2ea0ab..1e4e914 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -17,6 +17,8 @@ class cloudkitty::client ( package { 'python-cloudkittyclient': ensure => $ensure, name => $cloudkitty::params::client_package_name, - tag => 'openstack', + tag => ['openstack', 'openstackclient'], } + + include openstacklib::openstackclient } diff --git a/spec/classes/cloudkitty_client_spec.rb b/spec/classes/cloudkitty_client_spec.rb index 9687527..6b4dd02 100644 --- a/spec/classes/cloudkitty_client_spec.rb +++ b/spec/classes/cloudkitty_client_spec.rb @@ -11,7 +11,7 @@ describe 'cloudkitty::client' do is_expected.to contain_package('python-cloudkittyclient').with( :ensure => 'present', :name => platform_params[:client_package_name], - :tag => 'openstack', + :tag => ['openstack', 'openstackclient'], ) end end